hmac_md5_usingrawkey(9)
okay so bestie, this is hmac_md5_usingrawkey(9) from the Kernel API Manual, and she is literally the one-shot HMAC-MD5 function that takes a raw key. no cap. π«Ά
π NAME π
hmac_md5_usingrawkey β Compute HMAC-MD5 in one shot, using a raw key. that's the whole name, and she ate. π
π¦ SYNOPSIS π¦
void hmac_md5_usingrawkey (const u8 *raw_key , size_t raw_key_len ,
const u8 *data , size_t data_len , u8 out[static MD5_DIGEST_SIZE] );
β¨ ARGUMENTS β¨
okay here's the cast of characters, bestie:
raw_keyβ the raw HMAC-MD5 key. πraw_key_lenβ the key length in bytes. All key lengths are supported β¨ (yes, all of them, no gatekeeping).dataβ the message data. π¨data_lenβ the data length in bytes. πoutβ (output) the resulting HMAC-MD5 value. π
πΈ DESCRIPTION πΈ
okay so real talk: If you're using the key multiple times, prefer to use hmac_md5_preparekey followed by multiple calls to hmac_md5 instead. that's the whole note, bestie β she's lowkey telling you to reuse the prepared-key situation instead of doing the one-shot thing over and over. π
π CONTEXT π
Any context. literally any. she's flexible like that. π
π₯ SEE ALSO π₯
go look at these icons when you're done:
- Kernel file
./include/crypto/md5.hποΈ struct md5_ctx(9)md5_init(9)md5_update(9)md5_final(9)md5(9)struct hmac_md5_key(9)struct hmac_md5_ctx(9)hmac_md5_preparekey(9)hmac_md5_init(9)hmac_md5_init_usingrawkey(9)hmac_md5_update(9)hmac_md5_final(9)hmac_md5(9)
xoxo, your kernel bestie π«Ά β this page lives under ./include/crypto, and it's dated October 2026. mwah π
π¦ 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