sha384(9)
π sha384 β the one-shot SHA-384 glow-up (Kernel API Manual, bestie)
okay so picture this: you've got a blob of bytes and you need a SHA-384 digest of it, like, right now, no multi-step saga, no state to babysit. That's this function. One call, one digest, done. She's the "compute SHA-384 message digest in one shot" girlie and honestly? Iconic. β¨
πΈ NAME πΈ
sha384 β Compute SHA-384 message digest in one shot. no cap, that's the whole gig.
π SYNOPSIS π
void sha384 (const u8 *data , size_t len , u8 out[static
SHA384_DIGEST_SIZE] );
π¦ ARGUMENTS π¦
dataβ the message data. like, the actual bytes you're hashing, bestie. this is the main character.lenβ the data length in bytes. how much ofdatawe're actually looking at, fr fr.outβ (output) the resulting SHA-384 message digest. this one's write-only energy: she gets filled in with the digest and she's literally declared[static SHA384_DIGEST_SIZE], so the size is non-negotiable π
π CONTEXT π
Any context. yes, any. no special locks, no "only from process context" gatekeeping, no vibe check required β you're free π«Ά
β SEE ALSO β
Kernel file ./include/crypto/sha2.h, plus the whole extended family β she did NOT come alone, the entourage is huge and we're listing every single one:
- struct
sha224_ctx(9),sha224_init(9),sha224_update(9),sha224_final(9),sha224(9), structhmac_sha224_key(9), structhmac_sha224_ctx(9),hmac_sha224_preparekey(9),hmac_sha224_init(9),hmac_sha224_init_usingrawkey(9),hmac_sha224_update(9),hmac_sha224_final(9),hmac_sha224(9),hmac_sha224_usingrawkey(9) - struct
sha256_ctx(9),sha256_init(9),sha256_update(9),sha256_final(9),sha256(9),sha256_finup_2x(9),sha256_finup_2x_is_optimized(9), structhmac_sha256_key(9), structhmac_sha256_ctx(9),hmac_sha256_preparekey(9),hmac_sha256_init(9),hmac_sha256_init_usingrawkey(9),hmac_sha256_update(9),hmac_sha256_final(9),hmac_sha256(9),hmac_sha256_usingrawkey(9) - struct
sha384_ctx(9),sha384_init(9),sha384_update(9),sha384_final(9)β the incremental squad, if one-shot isn't your era - struct
hmac_sha384_key(9), structhmac_sha384_ctx(9),hmac_sha384_preparekey(9),hmac_sha384_init(9),hmac_sha384_init_usingrawkey(9),hmac_sha384_update(9),hmac_sha384_final(9),hmac_sha384(9),hmac_sha384_usingrawkey(9) - struct
sha512_ctx(9),sha512_init(9),sha512_update(9),sha512_final(9),sha512(9), structhmac_sha512_key(9), structhmac_sha512_ctx(9),hmac_sha512_preparekey(9),hmac_sha512_init(9),hmac_sha512_init_usingrawkey(9),hmac_sha512_update(9),hmac_sha512_final(9),hmac_sha512(9),hmac_sha512_usingrawkey(9)
and that's the whole page, bestie β go forth and hash π§ββοΈ
okay signing off for real: this little number lives in ./include/crypto, it's dated October 2026, and you can find her under sha384(9). 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