1
.\" DO NOT MODIFY THIS FILE! It was generated by gdoc.
2
.TH "gnutls_hmac_init" 3 "2.10.5" "gnutls" "gnutls"
4
gnutls_hmac_init \- API function
6
.B #include <gnutls/gnutls.h>
8
.BI "int gnutls_hmac_init(gnutls_hmac_hd_t * " dig ", gnutls_digest_algorithm_t " algorithm ", const void * " key ", size_t " keylen ");"
10
.IP "gnutls_hmac_hd_t * dig" 12
11
is a \fBgnutls_hmac_hd_t\fP structure.
12
.IP "gnutls_digest_algorithm_t algorithm" 12
13
the HMAC algorithm to use
14
.IP "const void * key" 12
15
The key to be used for encryption
16
.IP "size_t keylen" 12
19
This function will initialize an context that can be used to
20
produce a Message Authentication Code (MAC) of data. This will
21
effectively use the current crypto backend in use by gnutls or the
22
cryptographic accelerator in use.
24
Zero or a negative value on error.
28
Report bugs to <bug-gnutls@gnu.org>.
29
GnuTLS home page: http://www.gnu.org/software/gnutls/
30
General help using GNU software: http://www.gnu.org/gethelp/
32
Copyright \(co 2008 Free Software Foundation.
34
Copying and distribution of this file, with or without modification,
35
are permitted in any medium without royalty provided the copyright
36
notice and this notice are preserved.
38
The full documentation for
40
is maintained as a Texinfo manual. If the
44
programs are properly installed at your site, the command
48
should give you access to the complete manual.