KCAPI_MD_SHA3_384(3)
β¨ KCAPI_MD_SHA3_384 β¨
okay bestie, welcome to kcapi_md_sha3_384 β the one-shot SHA3-384 message digest situation, straight out of the Programming Interface manual, section 3 π
π NAME π
kcapi_md_sha3_384 β SHA3-384 message digest on one buffer. one buffer. that's it. that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
ssize_t kcapi_md_sha3_384(const uint8_t * in, size_t inlen,
uint8_t * out, size_t outlen);
π ARGUMENTS π
inβ [in] the buffer holding your input data π«Άinlenβ [in] how long that input buffer is, in bytesoutβ [out] the buffer where the message digest lands β¨outlenβ [in] the length ofout, queen
π DESCRIPTION π
So like, this is a one-shot convenience function, meaning you show up, hand it a buffer, and it generates a message digest of that buffer. no drama, no setup arc, just digest. periodt.
the catch tho: the output buffer must be allocated by the caller. that's you. you're the caller. and it has to have at least the length of the message digest size for the chosen message digest β so for SHA3-384, don't be out here handing it a thimble, bestie π
and here's the return tea:
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 π
like, -ENOMEM isn't a total loss, it still fills your buffer with the truncated digest, but it's giving "we ran out of room" energy. noted. π
π AUTHOR π
Stephan Mueller <smueller@chronox.de>
- Author. iconic behavior, fr fr π
π COPYRIGHT π
that's the whole page, bestie β no cap, every flag and fact accounted for π§
this was libkcapi Manual version 1.5.0, dated July 2025, and you've been reading KCAPI_MD_SHA3_384(3) the entire time π
β¨ slay responsibly.
π¦ where this page comes from
- fedora 43: libkcapi-devel 1.5.0-6.fc43 Β· BSD-3-Clause OR GPL-2.0-only
- fedora 43: libkcapi-devel 1.5.0-6.fc43 Β· BSD-3-Clause OR GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms