crypto_akcipher_encrypt(9)
π crypto_akcipher_encrypt(9) π
okay so bestie, this is a page straight out of the Kernel API Manual, and it's literally about invoking a public key encrypt operation. no cap. let's get into it π«Ά
β¨ NAME β¨
crypto_akcipher_encrypt β the function that goes and invokes the public key encrypt operation. that's it, that's the vibe π
πΈ SYNOPSIS πΈ
int crypto_akcipher_encrypt (struct akcipher_request *req );
like, one argument, one int coming back. we love a clean signature β¨
π ARGUMENTS π
reqβ the asymmetric key request. that's your whole little request bundle, she's the main character here π
π¦ DESCRIPTION π¦
so what does this icon actually do? she invokes the specific public key encrypt operation for a given public key algorithm. fr fr β you hand her the request, she routes it to whatever algorithm is in play, and the encryption happens. she's not doing the math herself, she's the one making the introduction ππ
β RETURN β
- zero on success β slay, we love a
0π - an error code in case of error β not the vibe, but at least she tells you π
π SEE ALSO π
the whole friend group π«Ά all of these are 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_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, bestie π this one's coming at you from ./include/crypto, dated October 2026, and it's filed under crypto_akcipher_encrypt(9). go encrypt something iconic β¨π§ββοΈ
π¦ 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