hmac_sha224_usingrawkey(9)
π hmac_sha224_usingrawkey π
okay so bestie, welcome to the Kernel API Manual, and today's main character is hmac_sha224_usingrawkey β because sometimes you just need your HMAC-SHA224 right now, in one shot, with a raw key. no prep era, no drama, just vibes and a digest. β¨
πΈ NAME πΈ
hmac_sha224_usingrawkey β compute HMAC-SHA224 in one shot, using a raw key π
π SYNOPSIS π
void hmac_sha224_usingrawkey (const u8 *raw_key , size_t raw_key_len ,
const u8 *data , size_t data_len , u8 out[static SHA224_DIGEST_SIZE] );
literally one call and you're done, we love a low-effort icon π«Ά
β¨ ARGUMENTS β¨
raw_keyβ the raw HMAC-SHA224 key, bestie. that's her.raw_key_lenβ the key length in bytes. and ngl, all key lengths are supported. every single one. no gatekeeping πdataβ the message data, aka the stuff you actually want to hash.data_lenβ the data length in bytes. yes, you have to tell it. it's not a mind reader πoutβ (output) the resulting HMAC-SHA224 value. this is where the slay lands. π¦
π₯ DESCRIPTION π₯
so here's the tea: this is the one-shot version. you hand it the raw key, you hand it the data, it gives you back the HMAC-SHA224 value, everyone claps. π
but listen β if you're using the key multiple times, prefer to use hmac_sha224_preparekey followed by multiple calls to hmac_sha224 instead. it's giving efficiency. it's giving main character energy. do that instead, fr fr. β
π CONTEXT π
Any context. literally any. no restrictions, no prerequisites, she's flexible like that. π
π SEE ALSO π
Kernel file ./include/crypto/sha2.h β and all these gorgeous siblings:
struct sha224_ctx(9)sha224_init(9)sha224_update(9)sha224_final(9)sha224(9)struct hmac_sha224_key(9)struct hmac_sha224_ctx(9)hmac_sha224_preparekey(9)hmac_sha224_init(9)hmac_sha224_init_usingrawkey(9)hmac_sha224_update(9)hmac_sha224_final(9)hmac_sha224(9)struct sha256_ctx(9)sha256_init(9)sha256_update(9)sha256_final(9)sha256(9)sha256_finup_2x(9)sha256_finup_2x_is_optimized(9)struct hmac_sha256_key(9)struct hmac_sha256_ctx(9)hmac_sha256_preparekey(9)hmac_sha256_init(9)hmac_sha256_init_usingrawkey(9)hmac_sha256_update(9)hmac_sha256_final(9)hmac_sha256(9)hmac_sha256_usingrawkey(9)struct sha384_ctx(9)sha384_init(9)sha384_update(9)sha384_final(9)sha384(9)struct hmac_sha384_key(9)struct hmac_sha384_ctx(9)hmac_sha384_preparekey(9)hmac_sha384_init(9)hmac_sha384_init_usingrawkey(9)hmac_sha384_update(9)hmac_sha384_final(9)hmac_sha384(9)hmac_sha384_usingrawkey(9)struct sha512_ctx(9)sha512_init(9)sha512_update(9)sha512_final(9)sha512(9)struct hmac_sha512_key(9)struct hmac_sha512_ctx(9)hmac_sha512_preparekey(9)hmac_sha512_init(9)hmac_sha512_init_usingrawkey(9)hmac_sha512_update(9)hmac_sha512_final(9)hmac_sha512(9)hmac_sha512_usingrawkey(9)
like, the whole sha2 family reunion. iconic. π
and that's the page, bestie! π this little beauty lives in ./include/crypto and the version date is October 2026 β go forth and HMAC responsibly, ily π§ββοΈπ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms