1gnutls_crypto_single_mac_register2(3)gnutlsgnutls_crypto_single_mac_register2(3)
2
3
4
6 gnutls_crypto_single_mac_register2 - register a MAC algorithm
7
9 #include <gnutls/gnutls.h>
10
11 int gnutls_crypto_single_mac_register2(gnutls_mac_algorithm_t algo‐
12 rithm, int priority, int version, gnutls_crypto_single_mac_st * s);
13
15 gnutls_mac_algorithm_t algorithm
16 is the gnutls algorithm identifier
17
18 int priority
19 is the priority of the algorithm
20
21 int version should be set to GNUTLS_CRYPTO_API_VERSION
22
23 gnutls_crypto_single_mac_st * s
24 is a structure holding new algorithms's data
25
27 This function will register a MAC algorithm to be used by gnutls. Any
28 algorithm registered will override the included algorithms and by con‐
29 vention kernel implemented algorithms have priority of 90. The algo‐
30 rithm with the lowest priority will be used by gnutls.
31
32 This function should be called before gnutls_global_init().
33
34 For simplicity you can use the convenience gnutls_crypto_sin‐
35 gle_mac_register() macro.
36
38 GNUTLS_E_SUCCESS on success, otherwise an error.
39
41 2.6.0
42
44 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
45 http://www.gnu.org/software/gnutls/ General help using GNU software:
46 http://www.gnu.org/gethelp/
47
49 Copyright © 2008 Free Software Foundation.
50 Copying and distribution of this file, with or without modification,
51 are permitted in any medium without royalty provided the copyright
52 notice and this notice are preserved.
53
55 The full documentation for gnutls is maintained as a Texinfo manual.
56 If the info and gnutls programs are properly installed at your site,
57 the command
58
59 info gnutls
60
61 should give you access to the complete manual.
62
63
64
65gnutls 2.8.6gnutls_crypto_single_mac_register2(3)