crypto_akcipher_set_pub_key(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… crypto_akcipher_set_pub_key(9) β€” the Kernel API Manual glow-up

okay so bestie, welcome to the <pink>Kernel API Manual</pink> ✨ this one's called crypto_akcipher_set_pub_key and it's literally the "here's my public key, please take it" of the crypto world 🫢


πŸ’– NAME πŸ’–

crypto_akcipher_set_pub_key β€” the function that invokes the set public key operation, no cap πŸ”‘


✨ SYNOPSIS ✨

int crypto_akcipher_set_pub_key (struct crypto_akcipher *tfm , const
void *key , unsigned int keylen );

that's the whole signature, character for character, don't @ me πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • tfm β€” your tfm handle. the main character of this whole operation fr fr 🌟
  • key β€” the BER encoded public key, plus the algo OID, plus paramlen, plus BER encoded parameters. yeah it's a whole little package deal πŸ“¦
  • keylen β€” the length of the key, and not including the other data. just the key, bestie πŸ™ˆ

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does this actually do? it invokes the algorithm-specific set key function β€” the one that actually knows how to decode and interpret the encoded key and the parameters 🧚✨

like, this function is the vibe check that hands things off to the algo that speaks the language. iykyk πŸ’œ


πŸ”₯ RETURN πŸ”₯

  • zero on success πŸŽ‰ slay
  • an error code in case of error 😭

🌈 SEE ALSO 🌈

the whole friend group, in the kernel file ./include/crypto/akcipher.h 🫢


ngl, read the SEE ALSO list. it's giving "found family" and every single one of them matters πŸ’–

and that's the page, bestie πŸŽ€ brought to you by <purple>./include/crypto</purple>, dated <cyan>October 2026</cyan>, and titled β€” say it with me β€” crypto_akcipher_set_pub_key(9) πŸ’…βœ¨ periodt.

πŸ“¦ where this page comes from