sha256_update(9)
π sha256_update β like, the Kernel API Manual, section 9, bestie β¨
okay so you're in the kernel, you've got a SHA-256 thing going on, and you need to feed it more message data. that's literally this function. welcome π«Ά
πΈ NAME πΈ
sha256_update β update a SHA-256 context with message data. that's it, that's the whole job, and it ate π
β¨ SYNOPSIS β¨
void sha256_update (struct sha256_ctx *ctx , const u8 *data , size_t len
);
π ARGUMENTS π
ctxβ the context you're updating. no cap, it must have been initialized first β don't come at this function with a raw uninitialized context, that's not the vibe πdataβ the message data itself. the actual bytes. the main character π¦lenβ how longdatais, in bytes. size matters and we respect it π
π DESCRIPTION π
This can be called any number of times. literally as many as you want. zero, one, forty-seven, go off π
π CONTEXT π
Any context. all of them. every single one. no restrictions, we're flexible like that π β¨
π§ SEE ALSO π§
so there's a whole friend group here and honestly the way this page lists every single one of them? iconic. here's the roster, no one gets left out π«Ά
Kernel file ./include/crypto/sha2.h, plus:
struct sha224_ctx(9),sha224_init(9),sha224_update(9),sha224_final(9),sha224(9)struct hmac_sha224_key(9),struct hmac_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_final(9),sha256(9),sha256_finup_2x(9),sha256_finup_2x_is_optimized(9)struct hmac_sha256_key(9),struct hmac_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),sha384(9)struct hmac_sha384_key(9),struct hmac_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)struct hmac_sha512_key(9),struct hmac_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)
iykyk π«
and that's the whole page, bestie β brought to you by ./include/crypto, dated October 2026, filed under sha256_update(9). stan a stable ABI, 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