1gnutls_crypto_register_mac(3)       gnutls       gnutls_crypto_register_mac(3)
2
3
4

NAME

6       gnutls_crypto_register_mac - API function
7

SYNOPSIS

9       #include <gnutls/crypto.h>
10
11       int  gnutls_crypto_register_mac(gnutls_mac_algorithm_t  algorithm,  int
12       priority,  gnutls_mac_init_func  init,  gnutls_mac_setkey_func  setkey,
13       gnutls_mac_setnonce_func     setnonce,    gnutls_mac_hash_func    hash,
14       gnutls_mac_output_func    output,    gnutls_mac_deinit_func     deinit,
15       gnutls_mac_fast_func hash_fast);
16

ARGUMENTS

18       gnutls_mac_algorithm_t algorithm
19                   is the gnutls MAC identifier
20
21       int priority
22                   is the priority of the algorithm
23
24       gnutls_mac_init_func init
25                   A function which initializes the MAC
26
27       gnutls_mac_setkey_func setkey
28                   A function which sets the key of the MAC
29
30       gnutls_mac_setnonce_func setnonce
31                   A  function  which  sets the nonce for the mac (may be NULL
32                   for common MAC algorithms)
33
34       gnutls_mac_hash_func hash
35                   Perform the hash operation
36
37       gnutls_mac_output_func output
38                   Provide the output of the MAC
39
40       gnutls_mac_deinit_func deinit
41                   A function which deinitializes the MAC
42
43       gnutls_mac_fast_func hash_fast
44                   Perform the MAC operation in one go
45

DESCRIPTION

47       This function will register a MAC algorithm to be used by gnutls.   Any
48       algorithm  registered will override the included algorithms and by con‐
49       vention  kernel  implemented  algorithms  have  priority  of   90   and
50       CPU-assisted  of  80.   The  algorithm with the lowest priority will be
51       used by gnutls.
52

RETURNS

54       GNUTLS_E_SUCCESS on success, otherwise a negative error code.
55

SINCE

57       3.4.0
58

REPORTING BUGS

60       Report bugs to <bugs@gnutls.org>.
61       Home page: https://www.gnutls.org
62
63
65       Copyright © 2001-2020 Free Software Foundation, Inc., and others.
66       Copying and distribution of this file, with  or  without  modification,
67       are  permitted  in  any  medium  without royalty provided the copyright
68       notice and this notice are preserved.
69

SEE ALSO

71       The full documentation for gnutls is maintained as  a  Texinfo  manual.
72       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
73       visit
74
75       https://www.gnutls.org/manual/
76
77gnutls                              3.6.13       gnutls_crypto_register_mac(3)
Impressum