akcipher_request_alloc(9)
β¨ akcipher_request_alloc π
okay so bestie, welcome to the Kernel API Manual entry for akcipher_request_alloc β yes that's the whole name, no it's not short, we don't make the rules π. This is the function that allocates a public key request for you. That's it. That's the vibe. Let me walk you through it π«Ά
πΈ SYNOPSIS πΈ
struct akcipher_request * akcipher_request_alloc (struct crypto_akcipher
*tfm , gfp_t gfp );
literally the whole signature. look at her go β¨
π¦ ARGUMENTS π¦
tfmβ the AKCIPHER tfm handle, and no you can't just make one up, it has to be one you got fromcrypto_alloc_akcipher. gotta have the real thing, bestie πgfpβ the allocation flags. yeah, thegfp_tflags, you know the ones. this is you telling the kernel how to behave while it's grabbing memory for you π
π RETURN π
So what do you get back? A freshly allocated handle in case of success π β or NULL in case of an error π. Nothing in between, no surprises, no hidden lore. Check for that NULL, queen. periodt.
π SEE ALSO π
okay this is the bestie section, so many icons in here, let me introduce everyone:
- the kernel file
./include/crypto/akcipher.h(the source of truth, the mothership π) 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_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)
all of them. every single one. go read them, iykyk πβ¨
and that's the page!! sourced from ./include/crypto, dated October 2026 β mwah, bye bestie, go allocate responsibly π
π₯π
π¦ 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