1gnutls_hmac_fast(3) gnutls gnutls_hmac_fast(3)
2
3
4
6 gnutls_hmac_fast - API function
7
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 *
13 digest);
14
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
35 This convenience function will hash the given data and return output on
36 a single call.
37
39 Zero or a negative error code on error.
40
42 2.10.0
43
45 Report bugs to <bugs@gnutls.org>.
46 Home page: http://www.gnutls.org
47
48
50 Copyright © 2001-2018 Free Software Foundation, Inc., and others.
51 Copying and distribution of this file, with or without modification,
52 are permitted in any medium without royalty provided the copyright
53 notice and this notice are preserved.
54
56 The full documentation for gnutls is maintained as a Texinfo manual.
57 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
58 visit
59
60 http://www.gnutls.org/manual/
61
62gnutls 3.6.5 gnutls_hmac_fast(3)