crypto_shash_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– crypto_shash_init β€” bestie, we're resetting the digest πŸ’–

okay so this is a page from the Kernel API Manual, and it's literally about the little function that (re)starts your message digest. iconic behaviour honestly πŸŽ€


✨ NAME ✨

crypto_shash_init β€” (re)initialize message digest


🌸 SYNOPSIS 🌸

int crypto_shash_init (struct shash_desc *desc );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • desc β€” the operational state handle, and it's already filled when you hand it over. like, don't come to this function with an empty one, she needs the goods already in there πŸ’…

πŸ‘‘ DESCRIPTION πŸ‘‘

So the call (re-)initializes the message digest that the operational state handle is referencing. literally that's it. and bestie, listen β€” any potentially existing state left over from previous operations? discarded. gone. not invited to the party. πŸ—‘οΈβœ¨

fresh start energy only.


🧚 CONTEXT 🧚

Softirq or process context. that's the vibe check, and it passes ✨


πŸ’œ RETURN πŸ’œ

  • 0 β€” slay, the message digest initialization was successful πŸŽ‰
  • < 0 β€” uh oh, an error occurred πŸ˜­πŸ’€

⭐ SEE ALSO ⭐

grab a snack, this list is long, but we're getting through it together fr fr πŸ“

  • Kernel file ./include/crypto/hash.h Message Digest Algorithm Definitions(9)
  • struct ahash_alg(9)
  • struct shash_alg(9)
  • Asynchronous Message Digest API(9)
  • crypto_alloc_ahash(9)
  • crypto_free_ahash(9)
  • crypto_has_ahash(9)
  • crypto_ahash_blocksize(9)
  • crypto_ahash_digestsize(9)
  • crypto_ahash_statesize(9)
  • crypto_ahash_reqtfm(9)
  • crypto_ahash_reqsize(9)
  • crypto_ahash_setkey(9)
  • crypto_ahash_finup(9)
  • crypto_ahash_final(9)
  • crypto_ahash_digest(9)
  • crypto_ahash_export(9)
  • crypto_ahash_import(9)
  • crypto_ahash_init(9)
  • crypto_ahash_update(9)
  • Asynchronous Hash Request Handle(9)
  • ahash_request_set_tfm(9)
  • ahash_request_alloc(9)
  • ahash_request_free(9)
  • ahash_request_set_callback(9)
  • ahash_request_set_crypt(9)
  • ahash_request_set_virt(9)
  • Synchronous Message Digest API(9)
  • crypto_alloc_shash(9)
  • crypto_free_shash(9)
  • crypto_shash_blocksize(9)
  • crypto_shash_digestsize(9)
  • crypto_shash_descsize(9)
  • crypto_shash_setkey(9)
  • crypto_shash_digest(9)
  • crypto_shash_tfm_digest(9)
  • crypto_shash_export(9)
  • crypto_shash_import(9)
  • crypto_shash_finup(9)
  • crypto_shash_update(9)
  • crypto_shash_final(9)

okay that's the whole page, you ate that bestie 🫢 this one lives under ./include/crypto, dated October 2026 β€” mwah, go init some digests, ily, bye πŸ’…βœ¨πŸŒˆ

πŸ“¦ where this page comes from