sha1(9)
π sha1(9)
okay so bestie, this one's from the Kernel API Manual β yes we're in kernel land now, put your hair up π
β¨ NAME β¨
sha1 β compute a SHA-1 message digest in one shot. like, all at once, no drip-feeding it data. one call, one digest, done. slay π
β¨ SYNOPSIS β¨
void sha1 (const u8 *data , size_t len , u8 out[static SHA1_DIGEST_SIZE]
);
β¨ ARGUMENTS β¨
dataβ the message data. literally the thing you want hashed π«Άlenβ how long that data is, in bytes. yes bytes, not vibes β¨outβ (output!) the resulting SHA-1 message digest goes in here. this is where the magic lands, so don't forget to pass it π
β¨ CONTEXT β¨
Any context. fr fr β no locks, no sleep restrictions, nothing to worry about. go off whenever π
β¨ SEE ALSO β¨
Kernel file ./include/crypto/sha1.h, plus the whole sha1/hmac squad:
struct sha1_ctx(9)sha1_init(9)sha1_update(9)sha1_final(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)
bestie reminder:outis an output param β it needs to be able to holdSHA1_DIGEST_SIZEbytes, and that signature is not playing around about it π«Ά
okay that's the whole page, go hash something iconic π
β
mwah, this page lives in ./include/crypto, and it's stamped October 2026 in the sha1(9) era. catch you in the next manpage, love u, bye π¦πΈ
π¦ 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