sha1(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


bestie reminder: out is an output param β€” it needs to be able to hold SHA1_DIGEST_SIZE bytes, 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