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

NAME

6       kcapi_md_sha512 - SHA-512 message digest on one buffer
7

SYNOPSIS

9       int32_t kcapi_md_sha512(const uint8_t * in, uint32_t inlen,
10                               uint8_t * out, uint32_t outlen);
11

ARGUMENTS

13       in
14           [in] buffer with input data
15
16       inlen
17           [in] length of input buffer
18
19       out
20           [out] buffer for message digest
21
22       outlen
23           [in] length of out
24

DESCRIPTION

26       With this one-shot convenience function, a message digest of the given
27       buffer is generated. The output buffer must be allocated by the caller
28       and have at least the length of the message digest size for the chosen
29       message digest.
30
31       return size of message digest upon success; -EIO - data cannot be
32       obtained; -ENOMEM - buffer is too small for the complete message
33       digest, the buffer is filled with the truncated message digest
34

AUTHOR

36       Stephan Mueller <smueller@chronox.de>
37           Author.
38
40libkcapi Manual 1.1.5             August 2019               KCAPI_MD_SHA512(3)
Impressum