crypto_register_akcipher(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– crypto_register_akcipher(9) β€” bestie's guide to signing algorithms up for duty πŸ’–

okay so you found the kernel API manual page for crypto_register_akcipher(9) and you're like "what is this" β€” don't worry, I got you 🫢 this is the Linux kernel crypto API corner of the docs, and this page is short, sweet, and honestly kind of iconic.


✨ NAME ✨

crypto_register_akcipher β€” register a public key algorithm πŸ”‘βœ¨

Like, that's the whole vibe. You're introducing the kernel to a shiny new public key cipher implementation.


πŸ¦‹ SYNOPSIS πŸ¦‹

int crypto_register_akcipher (struct akcipher_alg *alg );

one function, one pointer, zero drama. πŸ’…


🌸 ARGUMENTS 🌸

  • alg β€” the algorithm definition πŸŽ€ i.e. the struct that describes your public key cipher algorithm. This is the little packet of info the kernel needs to know what it's working with.

πŸ‘‘ DESCRIPTION πŸ‘‘

bestie, this function registers an implementation of a public key cipher algorithm ✨ that's it, that's the job. You hand it your struct akcipher_alg * and it goes "noted, added to the roster" πŸ“‹πŸ’–


πŸ’€ RETURN πŸ’€

  • zero on success πŸŽ‰ (zero is the good number here, no cap)
  • an error code in case of error 😭 β€” so like, check it, don't just ignore it, iykyk
fr fr always check the return value, bestie. 0 = we ate. anything else = something went sideways. πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯


that's the whole page, short and iconic πŸ’… the source lives in ./include/crypto/internal, this drop is from October 2026, and the page name is crypto_register_akcipher(9) in case you forgot already πŸŽ€ mwah, go register some algorithms, you got this πŸ’–βœ¨

πŸ“¦ where this page comes from