crypto_ahash_import(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… crypto_ahash_import β€” a kernel API manual moment

okay bestie, welcome to crypto_ahash_import(9) from the Kernel API Manual ✨ this little icon lives in the kernel crypto world, and she's here to help you import message digest state. yes, that's the whole NAME section, and yes, it's giving main character energy 🌸


✨ SYNOPSIS ✨

int crypto_ahash_import (struct ahash_request *req , const void *in );

like... that's the whole signature. two args, one int back. slay πŸ’…


🫢 ARGUMENTS 🫢

  • req β€” a reference to the ahash_request handle that the state is getting imported into. this is the destination, the home, the landing spot 🏠
  • in β€” a buffer holding the state. that's the payload you're bringing in, no cap πŸ“¦

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the vibe: this function imports the hash state into the ahash_request handle, pulling it in from the input buffer. lowkey iconic πŸŽ€

πŸ’– big important detail bestie: that buffer should have been generated with the crypto_ahash_export function. like, don't just roll up with any random bytes, okay? the state has to come from crypto_ahash_export β€” that's the matching pair, iykyk ✨

🌈 RETURN 🌈

  • 0 β€” the import was successful, we ate, we devoured, periodt πŸ‘‘
  • < 0 β€” an error occurred 😭 something went sideways, check your vibes

🧚 SEE ALSO 🧚

okay this list is LONG but we're not skipping a single one, bestie β€” every reference stays, fr fr πŸ’œ


and that's the page, babes πŸ’… this cutie is served up from the ./include/crypto corner of the tree, part of the October 2026 edition of the Kernel API Manual β€” crypto_ahash_import(9), forever iconic, mwah 🫢✨

πŸ“¦ where this page comes from