crypto_alloc_akcipher(9)
π 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 thecra_name/ name or thecra_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 withtypeπ
π¦ 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_ERRis true in case of an error, andPTR_ERRreturns 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 π
struct akcipher_request(9)struct crypto_akcipher(9)struct akcipher_alg(9)Generic Public Key Cipher API(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_pub_key(9)crypto_akcipher_set_priv_key(9)
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
- 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