crypto_akcipher_set_pub_key(9)
π 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 π₯
zeroon success π slay- an error code in case of error π
π SEE ALSO π
the whole friend group, in the kernel file ./include/crypto/akcipher.h π«Ά
struct akcipher_request(9)struct crypto_akcipher(9)struct akcipher_alg(9)Generic Public Key Cipher API(9)crypto_alloc_akcipher(9)crypto_free_akcipher(9)akcipher_request_alloc(9)akcipher_request_free(9)akcipher_request_set_callback(9)akcipher_request_set_crypt(9)crypto_akcipher_maxsize(9)crypto_akcipher_encrypt(9)crypto_akcipher_decrypt(9)crypto_akcipher_sync_encrypt(9)crypto_akcipher_sync_decrypt(9)crypto_akcipher_set_priv_key(9)β the private one, the introvert sibling π
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms