KCAPI_MD_HMAC_SM3(3)
β¨ KCAPI_MD_HMAC_SM3 β¨
okay so bestie, welcome to kcapi_md_hmac_sm3(3) β this is a page from the libkcapi Programming Interface, and it's literally the one-shot girlie for keyed message digests π
πΈ NAME πΈ
kcapi_md_hmac_sm3 β HMAC SM3 keyed message digest on one buffer
the vibe? you hand it a key, you hand it some data, it hands you back a digest. one buffer, one shot, no drama π
π¦ SYNOPSIS π¦
ssize_t kcapi_md_hmac_sm3(const uint8_t * key, uint32_t keylen,
const uint8_t * in, size_t inlen,
uint8_t * out, size_t outlen);
π ARGUMENTS π
keyβ [in] the buffer holding your HMAC key πkeylenβ [in] how long that HMAC key buffer isinβ [in] the buffer with your input datainlenβ [in] how long the input buffer isoutβ [out] the buffer where the message digest goes π«Άoutlenβ [in] how longoutis
π DESCRIPTION π
this is a one-shot convenience function, bestie. it generates a keyed message digest of the buffer you give it. that's it, that's the whole thing β¨
the output buffer has to be allocated by you β the caller β and it must have at least the length of the message digest size for whichever keyed message digest you picked. no cap, if it's too small, that's on you (well, kind of β see below π).
what it gives back:
- size of message digest upon success π
-EIOβ data cannot be obtained π-ENOMEMβ buffer is too small for the complete message digest, and the buffer gets filled with the truncated message digest π
π AUTHOR π
Stephan Mueller <smueller@chronox.de>
- Author.
π COPYRIGHT π
that's the whole page, bestie. this was the libkcapi Manual, version 1.5.0, dated July 2025 β page KCAPI_MD_HMAC_SM3(3), and honestly? iconic. go forth and HMAC 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