hmac_sha224_usingrawkey(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:

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