1gnutls_hmac_init(3)                 gnutls                 gnutls_hmac_init(3)
2
3
4

NAME

6       gnutls_hmac_init - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int  gnutls_hmac_init(gnutls_hmac_hd_t * dig, gnutls_digest_algorithm_t
12       algorithm, const void * key, size_t keylen);
13

ARGUMENTS

15       gnutls_hmac_hd_t * dig
16                   is a gnutls_hmac_hd_t structure.
17
18       gnutls_digest_algorithm_t algorithm
19                   the HMAC algorithm to use
20
21       const void * key
22                   The key to be used for encryption
23
24       size_t keylen
25                   The length of the key
26

DESCRIPTION

28       This function will initialize an context that can be used to produce  a
29       Message  Authentication  Code (MAC) of data.  This will effectively use
30       the current crypto backend in use by gnutls or the cryptographic accel‐
31       erator in use.
32

RETURNS

34       Zero or a negative value on error.
35

SINCE

37       2.10.0
38

REPORTING BUGS

40       Report    bugs    to    <bug-gnutls@gnu.org>.     GnuTLS   home   page:
41       http://www.gnu.org/software/gnutls/ General help  using  GNU  software:
42       http://www.gnu.org/gethelp/
43
45       Copyright © 2008 Free Software Foundation.
46       Copying  and  distribution  of this file, with or without modification,
47       are permitted in any medium  without  royalty  provided  the  copyright
48       notice and this notice are preserved.
49

SEE ALSO

51       The  full  documentation  for gnutls is maintained as a Texinfo manual.
52       If the info and gnutls programs are properly installed  at  your  site,
53       the command
54
55              info gnutls
56
57       should give you access to the complete manual.
58
59
60
61gnutls                             2.12.6.1                gnutls_hmac_init(3)
Impressum