File: gnutls_hmac_init

package info (click to toggle)
gnutls28 3.8.10-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 81,572 kB
  • sloc: ansic: 390,000; asm: 117,804; sh: 18,712; makefile: 6,754; yacc: 1,858; python: 1,399; cpp: 1,243; perl: 995; sed: 16
file content (25 lines) | stat: -rw-r--r-- 753 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25




@deftypefun {int} {gnutls_hmac_init} (gnutls_hmac_hd_t * @var{dig}, gnutls_mac_algorithm_t @var{algorithm}, const void * @var{key}, size_t @var{keylen})
@var{dig}: is a @code{gnutls_hmac_hd_t}  type

@var{algorithm}: the HMAC algorithm to use

@var{key}: the key to be used for encryption

@var{keylen}: the length of the key

This function will initialize an context that can be used to
produce a Message Authentication Code (MAC) of data.  This will
effectively use the current crypto backend in use by gnutls or the
cryptographic accelerator in use.

Note that despite the name of this function, it can be used
for other MAC algorithms than HMAC.

@strong{Returns:} Zero or a negative error code on error.

@strong{Since:} 2.10.0
@end deftypefun