kcapi_md_sm3(3)

kcapi_md_sm33

Sm3 message digest on one buffer

Usage

ssize_t kcapi_md_sm3(const uint8_t * in, size_t inlen, uint8_t * out, size_t outlen);

Arguments

in

[in] buffer with input data

inlen

[in] length of input buffer

out

[out] buffer for message digest

outlen

[in] length of out

Overview

With this one-shot convenience function, a message digest of the given buffer is generated. The output buffer must be allocated by the caller and have at least the length of the message digest size for the chosen message digest.

return size of message digest upon success; -EIO - data cannot be obtained; -ENOMEM - buffer is too small for the complete message digest, the buffer is filled with the truncated message digest

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

Author

Stephan Mueller <[email protected]>

Author.

From libkcapi-dev 1.4.0-1+b2 in Debian 13 (Trixie). Parsed by carta from the page's man source.