, gnutls_mac_deinit_func DEINIT, gnutls_mac_fast_func HASH_FAST) ALGORITHM: is the gnutls MAC identifier PRIORITY: is the priority of the algorithm INIT: A function which initializes the MAC SETKEY: A function which sets the key of the MAC SETNONCE: A function which sets the nonce for the mac (may be ‘NULL’ for common MAC algorithms) HASH: Perform the hash operation OUTPUT: Provide the output of the MAC DEINIT: A function which deinitializes the MAC HASH_FAST: Perform the MAC operation in one go This function will register a MAC algorithm to be used by gnutls. Any algorithm registered will override the included algorithms and by convention kernel implemented algorithms have priority of 90 and CPU-assisted of 80. The algorithm with the lowest priority will be used by gnutls. *Deprecated:* since 3.7.0 it is no longer possible to override cipher implementation *Returns:* ‘GNUTLS_E_SUCCESS’ on success, otherwise a negative error code. *Since:* 3.4.0 -- Function: int gnutls_crypto_register_digest (gnutls_digest_algorithm_t ALGORITHM, int PRIORITY, gnutls_digest_init_func INIT, gnutls_digest_hash_func HASH, gnutls_digest_output_func OUTPUT, gnutls_digest_deinit_func DEINIT, gnutls_digest_fast_func HASH_FAST) ALGORITHM: is the gnutls digest identifier PRIORITY: is the priority of the algorithm INIT: A function which initializes the digest HASH: Perform the hash operation OUTPUT: Provide the output of the digest DEINIT: A function which deinitializes the digest HASH_FAST: Perform the digest operation in one go This function will register a digest algorithm to be used by gnutls. Any algorithm registered will override the included algorithms and by convention kernel implemented algorithms have priority of 90 and CPU-assisted of 80. The algorithm with the lowest priority will be used by gnutls. *Deprecated:* since 3.7.0 it is no longer possible to override cipher implementation *Returns:* ‘GNUTLS_E_SUCCESS’ on success, otherwise a negative error code. *Since:* 3.4.0