1gnutls_hmac_fast(3)                 gnutls                 gnutls_hmac_fast(3)
2
3
4

NAME

6       gnutls_hmac_fast - API function
7

SYNOPSIS

9       #include <gnutls/crypto.h>
10
11       int  gnutls_hmac_fast(gnutls_mac_algorithm_t  algorithm,  const  void *
12       key, size_t keylen, const void * ptext, size_t ptext_len,  void  *  di‐
13       gest);
14

ARGUMENTS

16       gnutls_mac_algorithm_t algorithm
17                   the hash algorithm to use
18
19       const void * key
20                   the key to use
21
22       size_t keylen
23                   the length of the key
24
25       const void * ptext
26                   the data to hash
27
28       size_t ptext_len
29                   the length of data to hash
30
31       void * digest
32                   is the output value of the hash
33

DESCRIPTION

35       This convenience function will hash the given data and return output on
36       a single call. Note, this call will not work for  MAC  algorithms  that
37       require nonce (like UMAC or GMAC).
38

RETURNS

40       Zero or a negative error code on error.
41

SINCE

43       2.10.0
44

REPORTING BUGS

46       Report bugs to <bugs@gnutls.org>.
47       Home page: https://www.gnutls.org
48
49
51       Copyright © 2001- Free Software Foundation, Inc., and others.
52       Copying  and  distribution  of this file, with or without modification,
53       are permitted in any medium without royalty provided the copyright  no‐
54       tice and this notice are preserved.
55

SEE ALSO

57       The  full  documentation  for gnutls is maintained as a Texinfo manual.
58       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
59       visit
60
61       https://www.gnutls.org/manual/
62
63gnutls                               3.7.6                 gnutls_hmac_fast(3)
Impressum