KCAPI_MD_SHA3_256(3)
π KCAPI_MD_SHA3_256 β the manual page, bestie edition π
okay so this is KCAPI_MD_SHA3_256(3), section 3, and it's literally one of the most chill functions in the whole libkcapi lineup. no cap.
β¨ NAME β¨
kcapi_md_sha3_256 β SHA3-256 message digest on one buffer π
like. one buffer. one digest. one function call. it's giving low-effort-high-reward and we're obsessed.
β¨ SYNOPSIS β¨
ssize_t kcapi_md_sha3_256(const uint8_t * in, size_t inlen,
uint8_t * out, size_t outlen);
β¨ ARGUMENTS β¨
inβ[in]the buffer holding your input data π«Ά hand it over, bestieinlenβ[in]how long that input buffer isoutβ[out]the buffer where the message digest gets written π you're providing this oneoutlenβ[in]the length ofout
β¨ DESCRIPTION β¨
so with this one-shot convenience function, a message digest of the given buffer gets generated. that's it. that's the whole vibe. π¦
the output buffer? you allocate it, bestie, not the library. and it has to be at least the length of the message digest size for the chosen message digest. if it's not... well, we'll get to that. π
what it returns:
- the size of the message digest upon success β¨ (slay)
-EIOβ data cannot be obtained π-ENOMEMβ the buffer is too small for the complete message digest, and heads up: the buffer gets filled with the truncated message digest
so like, -ENOMEM isn't a total wipeout here β you still get something in your buffer, just the truncated version of the digest. but also... girl, size your buffer right the first time. π
β¨ AUTHOR β¨
Stephan Mueller <smueller@chronox.de>
- Author.
periodt. the icon who wrote this. π
β¨ COPYRIGHT β¨
that's the whole page, bestie, hope it ate π
this was the libkcapi Manual version 1.5.0, from July 2025 β go forth and hash responsibly, ily ππ§
KCAPI_MD_SHA3_256(3) β Programming Interface πΈ
π¦ 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