sha256_update(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ 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 long data is, 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:

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