1KCAPI_MD_HMAC_SHA1(3)        Programming Interface       KCAPI_MD_HMAC_SHA1(3)
2
3
4

NAME

6       kcapi_md_hmac_sha1 - HMAC SHA-1 keyed message digest on one buffer
7

SYNOPSIS

9       int32_t kcapi_md_hmac_sha1(const uint8_t * key, uint32_t keylen,
10                                  const uint8_t * in, uint32_t inlen,
11                                  uint8_t * out, uint32_t outlen);
12

ARGUMENTS

14       key
15           [in] buffer with HMAC key
16
17       keylen
18           [in] length of HMAC key buffer
19
20       in
21           [in] buffer with input data
22
23       inlen
24           [in] length of input buffer
25
26       out
27           [out] buffer for message digest
28
29       outlen
30           [in] length of out
31

DESCRIPTION

33       With this one-shot convenience function, a keyed message digest of the
34       given buffer is generated. The output buffer must be allocated by the
35       caller and have at least the length of the message digest size for the
36       chosen keyed message digest.
37
38       return size of message digest upon success; -EIO - data cannot be
39       obtained; -ENOMEM - buffer is too small for the complete message
40       digest, the buffer is filled with the truncated message digest
41

AUTHOR

43       Stephan Mueller <smueller@chronox.de>
44           Author.
45
47libkcapi Manual 1.1.1             August 2018            KCAPI_MD_HMAC_SHA1(3)
Impressum