hmac_sha1_preparekey(9)
π hmac_sha1_preparekey β from the Kernel API Manual, bestie π
okay so you found a page from the Kernel API Manual and it's literally about getting your key ready for HMAC-SHA1. it's giving β¨crypto prep eraβ¨ and honestly? we're obsessed.
β¨ NAME β¨
hmac_sha1_preparekey β get a key all prepped and ready for HMAC-SHA1 π
πΈ SYNOPSIS πΈ
void hmac_sha1_preparekey (struct hmac_sha1_key *key , const u8 *raw_key
, size_t raw_key_len );
π¦ ARGUMENTS π¦
keyβ (output) bestie this is the key structure you're initializing, she's the main character πraw_keyβ the raw HMAC-SHA1 key, your actual key material fr fr πraw_key_lenβ the key length in bytes. and the way that all key lengths are supported?? no cap, every single one ππ
π NOTE π
π¨ listen up bestie, this part is important π¨ the caller is responsible for zeroizing both the struct hmac_sha1_key and the raw key once they're no longer needed. that's on you, not on the function. don't leave your secrets lying around in memory, it's not the vibe π
π CONTEXT π
Any context. literally any. she's flexible like that π§β¨
π SEE ALSO π
- Kernel file
./include/crypto/sha1.h struct sha1_ctx(9)sha1_init(9)sha1_update(9)sha1_final(9)sha1(9)struct hmac_sha1_key(9)struct hmac_sha1_ctx(9)hmac_sha1_init(9)hmac_sha1_init_usingrawkey(9)hmac_sha1_update(9)hmac_sha1_final(9)hmac_sha1(9)hmac_sha1_usingrawkey(9)
like a whole friend group of functions, they all ate π₯
and that's the page!! sourced from ./include/crypto, dated October 2026 β so fresh, so iconic, periodt ππ«ΆπΈ
π¦ 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