gnutls_crypto_single_mac_register2 \- register a MAC algorithm
4
gnutls_crypto_single_mac_register2 \- API function
5
5
.SH SYNOPSIS
6
6
.B #include <gnutls/gnutls.h>
7
7
.sp
8
.BI "int gnutls_crypto_single_mac_register2(gnutls_mac_algorithm_t " algorithm ", int " priority ", int " version ", gnutls_crypto_single_mac_st * " s ");"
8
.BI "int gnutls_crypto_single_mac_register2(gnutls_mac_algorithm_t " algorithm ", int " priority ", int " version ", const gnutls_crypto_mac_st * " s ");"
9
9
.SH ARGUMENTS
10
10
.IP "gnutls_mac_algorithm_t algorithm" 12
11
11
is the gnutls algorithm identifier
13
13
is the priority of the algorithm
14
14
.IP "int version" 12
15
15
should be set to \fBGNUTLS_CRYPTO_API_VERSION\fP
16
.IP "gnutls_crypto_single_mac_st * s" 12
16
.IP "const gnutls_crypto_mac_st * s" 12
17
17
is a structure holding new algorithms's data
18
18
.SH "DESCRIPTION"
19
19
This function will register a MAC algorithm to be used by gnutls.