crypto_alloc_akcipher(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay so bestie, welcome to the crypto_alloc_akcipher(9) page, it's literally the glow-up tutorial for getting yourself a public key algorithm handle ✨


πŸŽ€ NAME πŸŽ€

crypto_alloc_akcipher β€” allocate an AKCIPHER tfm handle, no cap πŸ’…


✨ SYNOPSIS ✨

struct crypto_akcipher * crypto_alloc_akcipher (const char *alg_name ,
u32 type , u32 mask );

like, that's the whole vibe. three args, one iconic return type 🫢


🌸 ARGUMENTS 🌸

  • alg_name β€” this is the cra_name / name or the cra_driver_name / driver name of the public key algorithm, e.g. "rsa" πŸ”‘ (yes bestie, the classic)
  • type β€” specifies the type of the algorithm, it's giving "what kind of girlie are we dealing with" πŸ’β€β™€οΈ
  • mask β€” specifies the mask for the algorithm, the lil filter that goes with type πŸŽ€

πŸ¦‹ DESCRIPTION πŸ¦‹

So what this does is allocate a handle for a public key algorithm. The returned struct crypto_akcipher is the handle that is required for any subsequent API invocation for the public key operations β€” like, you literally cannot do the later calls without it, it's main character energy πŸ‘‘


πŸ’… RETURN πŸ’…

  • allocated handle in case of success πŸŽ‰
  • IS_ERR is true in case of an error, and PTR_ERR returns the error code 😭 (check it, bestie, don't just rawdog the pointer)

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./include/crypto/akcipher.h β€” the source of truth, iykyk πŸ“–

and that's the whole page, periodt πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά

this lil masterpiece lives at ./include/crypto and it's dated October 2026 β€” crypto_alloc_akcipher(9) out, slay bestie πŸ‘‘πŸŒˆβ­

πŸ“¦ where this page comes from