hmac_sha1_update(9)
π hmac_sha1_update β the kernel API manual edition β¨
okay so bestie, gather round, because today we're talking about hmac_sha1_update(9) from the Kernel API Manual β yes, the actual kernel API manual, not some random wiki page, we're fancy here π
πΈ NAME πΈ
hmac_sha1_update β literally just feeds more message data into an HMAC-SHA1 context, no cap π
β¨ SYNOPSIS β¨
void hmac_sha1_update (struct hmac_sha1_ctx *ctx , const u8 *data ,
size_t data_len );
that's the whole signature, character for character, don't @ me π«Ά
π¦ ARGUMENTS π¦
ctxβ the HMAC context you're updating. important: it must have been initialized already. like, this is not a "surprise, initialize it for you" situation, it's a "you should've done that already" situation π please initialise your contexts bestie.dataβ the message data itself. the actual bytes. the content. the main character of this function πdata_lenβ how longdatais, measured in bytes. extremely standard, extremely necessary π
π DESCRIPTION π
so here's the vibe: you call this to update an HMAC-SHA1 context with message data.
and the iconique part? this can be called any number of times. π zero. one. twelve. a hundred. the function does not care, it is unbothered, it is thriving π
β CONTEXT β
Any context. fr fr, that's what it says β no restrictions, no special context required, just vibes β¨
π SEE ALSO π
sibling functions and related structs, all linked together like one big crypto family reunion π§:
- 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_preparekey(9)hmac_sha1_init(9)hmac_sha1_init_usingrawkey(9)hmac_sha1_final(9)hmac_sha1(9)hmac_sha1_usingrawkey(9)
quick reminder bestie: ctx must have been initialized before you call this. that's not me being dramatic, that's literally in the arguments section. don't come for me, come for the docs π
π that's the whole page!! π this icon was brought to you by the ./include/crypto source, the October 2026 date stamp, and the Kernel API Manual itself β mwah, love u, go initialise ur contexts πβ¨π¦π
π¦ 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