hmac_sha384_usingrawkey(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… hmac_sha384_usingrawkey(9) β€” Kernel API Manual, bestie edition

okay so first things first, this is a page from the Kernel API Manual, and the star of the show is hmac_sha384_usingrawkey(9). She does exactly one thing and she does it flawlessly. Let's get into it πŸŽ€


✨ NAME ✨

hmac_sha384_usingrawkey β€” compute HMAC-SHA384 in one shot, using a raw key. one shot!! no preamble, no warm-up, we're just doing it πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

void hmac_sha384_usingrawkey (const u8 *raw_key , size_t raw_key_len ,
       const u8 *data , size_t data_len , u8 out[static SHA384_DIGEST_SIZE] );

like, look at that signature. five params, zero drama. the out buffer is literally sized for you at SHA384_DIGEST_SIZE, the compiler has your back fr fr 🫢


🌸 ARGUMENTS 🌸

  • raw_key β€” the raw HMAC-SHA384 key. raw as in unprepared, bestie, straight off the street 🧚
  • raw_key_len β€” the key length in bytes. and listen: all key lengths are supported. every single one. no judgment, no minimum, no "sorry that's too short" energy. iconic πŸ‘‘
  • data β€” the message data. the actual tea being hashed β˜•
  • data_len β€” the data length in bytes.
  • out β€” (output) the resulting HMAC-SHA384 value. she's the main character of this function, no cap πŸ’–

πŸ’œ DESCRIPTION πŸ’œ

so here's the vibe check: this is the one-shot version. you hand her a raw key, she computes the HMAC-SHA384, done, bye ✨

but listen closely, bestie, because this is the important part πŸ‘‡

If you're using the key multiple times, prefer to use hmac_sha384_preparekey followed by multiple calls to hmac_sha384 instead.

like yeah this one works, but if that key is gonna be reused, do the prepare-once-then-call-many thing. it's giving efficiency, it's giving respect for your CPU, it's giving "I read the whole manpage" 😌πŸ”₯


🌈 CONTEXT 🌈

Any context. literally any. she's flexible like that. no asterisks, no caveats, go off wherever you are πŸ¦‹


⭐ SEE ALSO ⭐

okay this list is long and she ate, every single one of these is here:

that's the whole family reunion right there, all 57 of them, and yes I counted πŸ˜­πŸ’€


and that's the page!! this lil gem lives over in ./include/crypto, shipped with the October 2026 version of the kernel docs. go hash something, bestie, you're gonna slay it πŸ’–βœ¨πŸŽ€πŸ«Ά

πŸ“¦ where this page comes from