KCAPI_MD_HMAC_SHA224(3)
β¨ NAME β¨
okay bestie, welcome to kcapi_md_hmac_sha224 β it's the HMAC SHA-224 keyed message digest that does the whole thing on one single buffer π like, one shot, no drama, no multiple calls, we love a convenience queen π
This page lives in section 3 of the libkcapi manual, and iykyk π¦
πΈ SYNOPSIS πΈ
ssize_t kcapi_md_hmac_sha224(const uint8_t * key, uint32_t keylen,
const uint8_t * in, size_t inlen,
uint8_t * out, size_t outlen);
that's the whole vibe, literally one function call and ur done β¨
π«Ά ARGUMENTS π«Ά
keyβ[in]the buffer holding ur HMAC key πkeylenβ[in]how long that HMAC key buffer isinβ[in]the buffer with the input data u wanna digest π₯inlenβ[in]the length of that input bufferoutβ[out]the buffer where the message digest goes πoutlenβ[in]the length ofout
π DESCRIPTION π
so here's the tea β β this is a one-shot convenience function, which means a keyed message digest of the buffer u handed over just gets generated. that's it. that's the whole job. iconic behavior fr fr π
β οΈ important bestie: the output buffer is NOT allocated for u. you have to allocate it urself, and it needs to be at least as long as the message digest size for whichever keyed message digest u picked. no skimping on buffer size, ok? π
and here's what it gives back:
- on success, it returns the size of the message digest β¨
-EIOβ the data cannot be obtained π-ENOMEMβ the buffer is too small for the complete message digest, and in that case the buffer gets filled with the truncated message digest
π¦ AUTHOR π¦
- Stephan Mueller
<smueller@chronox.de>β Author. (the main character who wrote this, we stan π)
π COPYRIGHT π
and that's the page bestie!! this was libkcapi Manual 1.5.0, dated July 2025 β shoutout to the libkcapi girlies, 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