crypto_alloc_ahash(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– crypto_alloc_ahash(9) β€” Kernel API Manual πŸ’–

okay bestie, welcome to the main-character allocation call for ahash handles. No cap, this is the one that hands you the handle you need for everything after it ✨

🌸 NAME 🌸

crypto_alloc_ahash β€” allocate ahash cipher handle πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

struct crypto_ahash * crypto_alloc_ahash (const char *alg_name , u32
type , u32 mask );

πŸ’… ARGUMENTS πŸ’…

  • alg_name β€” this is the cra_name / name or cra_driver_name / driver name of the ahash cipher.
  • type β€” specifies the type of the cipher.
  • mask β€” specifies the mask for the cipher.

✨ DESCRIPTION ✨

Allocate a cipher handle for an ahash. The returned struct crypto_ahash is the cipher handle that is required for any subsequent API invocation for that ahash. like, it is literally the entry ticket for the rest of the ahash API journey πŸ‘‘

🌈 RETURN 🌈

  • βœ… allocated cipher handle in case of success
  • 😭 IS_ERR is true in case of an error, PTR_ERR returns the error code.

No cap, those are the two outcomes. Keep your error check close, bestie 🫢

πŸŽ€ SEE ALSO πŸŽ€

the whole friend group, literally all of them:


This page is sourced from ./include/crypto, dated October 2026. Stay hydrated, check your pointers, and may your handles always be valid πŸ’–πŸ§šβœ¨

πŸ“¦ where this page comes from