Blame doc/functions/gnutls_crypto_register_mac

Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
@deftypefun {int} {gnutls_crypto_register_mac} (gnutls_mac_algorithm_t @var{algorithm}, int @var{priority}, gnutls_mac_init_func @var{init}, gnutls_mac_setkey_func @var{setkey}, gnutls_mac_setnonce_func @var{setnonce}, gnutls_mac_hash_func @var{hash}, gnutls_mac_output_func @var{output}, gnutls_mac_deinit_func @var{deinit}, gnutls_mac_fast_func @var{hash_fast})
Packit Service 4684c1
@var{algorithm}: is the gnutls MAC identifier
Packit Service 4684c1
Packit Service 4684c1
@var{priority}: is the priority of the algorithm
Packit Service 4684c1
Packit Service 4684c1
@var{init}: A function which initializes the MAC
Packit Service 4684c1
Packit Service 4684c1
@var{setkey}: A function which sets the key of the MAC
Packit Service 4684c1
Packit Service 4684c1
@var{setnonce}: A function which sets the nonce for the mac (may be @code{NULL}  for common MAC algorithms)
Packit Service 4684c1
Packit Service 4684c1
@var{hash}: Perform the hash operation
Packit Service 4684c1
Packit Service 4684c1
@var{output}: Provide the output of the MAC
Packit Service 4684c1
Packit Service 4684c1
@var{deinit}: A function which deinitializes the MAC
Packit Service 4684c1
Packit Service 4684c1
@var{hash_fast}: Perform the MAC operation in one go
Packit Service 4684c1
Packit Service 4684c1
This function will register a MAC algorithm to be used by gnutls.
Packit Service 4684c1
Any algorithm registered will override the included algorithms and
Packit Service 4684c1
by convention kernel implemented algorithms have priority of 90
Packit Service 4684c1
and CPU-assisted of 80.
Packit Service 4684c1
The algorithm with the lowest priority will be used by gnutls.
Packit Service 4684c1
Packit Service 4684c1
@strong{Returns:} @code{GNUTLS_E_SUCCESS}  on success, otherwise a negative error code.
Packit Service 4684c1
Packit Service 4684c1
@strong{Since:} 3.4.0
Packit Service 4684c1
@end deftypefun