crypto_ahash_statesize(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… crypto_ahash_statesize β€” the Kernel API Manual page, bestie edition ✨

Okay so this is crypto_ahash_statesize(9) from the Kernel API Manual, and it's literally the glow-up you need when you're doing ahash state things. Let's get into it 🫢


🌸 NAME 🌸

crypto_ahash_statesize β€” bestie, this is how you obtain the size of the ahash state. That's it, that's the whole vibe.


✨ SYNOPSIS ✨

unsigned int crypto_ahash_statesize (struct crypto_ahash *tfm );

πŸŽ€ ARGUMENTS πŸŽ€

  • tfm β€” the cipher handle. Your little main character pointer πŸ’…

πŸ’– DESCRIPTION πŸ’–

So like, this function returns the size of the ahash state. Periodt.

Why do you care? Because with the crypto_ahash_export function, the caller can export the state into a buffer β€” and the size of that buffer is defined with this function. So you gotta call crypto_ahash_statesize first to know how much room to give it, no cap. It's giving "measure twice, export once" πŸ¦‹


⭐ RETURN ⭐

Size of the ahash state. That's the whole return value, and honestly? Iconic.


🌈 SEE ALSO 🌈

Okay this list is long but we do NOT skip parts, so buckle up bestie πŸ“


That's the whole page, bestie β€” go forth and size those states πŸ’œ

Sign-off szn πŸŽ€: this lil beauty lives at ./include/crypto, dated October 2026, and it's filed under crypto_ahash_statesize(9) β€” iykyk ✨

πŸ“¦ where this page comes from