sha1_update(9)
π NAME π
sha1_update β update a SHA-1 context with message data π
okay so welcome to the Kernel API Manual page for sha1_update(9), bestie. This is literally the function that updates your SHA-1 context with message data, and we're gonna make it make sense β¨
β¨ SYNOPSIS β¨
the signature, no cap:
void sha1_update (struct sha1_ctx *ctx , const u8 *data , size_t len );
π¦ ARGUMENTS π¦
ctxβ the context to update; it must have been initialized (fr fr, do not skip this) πdataβ the message data πlenβ the data length in bytes π¦
πΈ DESCRIPTION πΈ
okay so the whole description is short and iconic: this can be called any number of times. that's the tea. no cap, no secret extra rules β just call it as many times as you need and it does its update thing. periodt π«Ά
π CONTEXT π
Any context. That's it β literally any context, bestie. vibe check passed π
π₯ SEE ALSO π₯
Kernel file ./include/crypto/sha1.h and the whole SHA-1 + hmac_sha1 friend group:
struct sha1_ctx(9)sha1_init(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_update(9)hmac_sha1_final(9)hmac_sha1(9)hmac_sha1_usingrawkey(9)
cute sign-off: this lil page lives under ./include/crypto, dated October 2026, and it's the sha1_update(9) page β mwah, slay, bye bestie πβ¨
π¦ 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