skcipher_request_alloc(9)
π skcipher_request_alloc(9) β the Kernel API Manual, bestie edition π
okay so this is skcipher_request_alloc, straight out of the Kernel API Manual, and it's genuinely one of the first things you'll touch when you're doing symmetric key cipher stuff. it's giving "allocator era" β¨
β¨ NAME β¨
skcipher_request_alloc β allocate request data structure π¦
πΈ SYNOPSIS πΈ
struct skcipher_request * skcipher_request_alloc (struct crypto_skcipher
*tfm , gfp_t gfp );
π ARGUMENTS π
tfmβ the cipher handle that's gonna get registered with the request π«Ά like, this is the crypto you're bringing to the party.gfpβ the memory allocation flag, which gets handed straight tokmallocby the API call. basically the "how hard should I try to get memory" vibe check π
π DESCRIPTION π
Allocate the request data structure β the one you must use with the skcipher encrypt and decrypt API calls. no substitutions, no DIY-ing it, periodt.
During the allocation, the skcipher handle you passed in gets registered in the request data structure. so tfm goes in, request comes out, everything's linked up and iconic π
β RETURN β
- you get the allocated request handle back in case of success π
- or
NULLif out of memory π (yes, that's a real outcome, plan accordingly)
π SEE ALSO π
okay this list is a journey, so buckle up bestie β and don't skip it, it's lowkey the whole ecosystem:
- Kernel file
./include/crypto/skcipher.hπ struct skcipher_request(9)struct skcipher_alg(9)struct lskcipher_alg(9)Symmetric Key Cipher API(9)crypto_alloc_skcipher(9)crypto_alloc_lskcipher(9)crypto_free_skcipher(9)crypto_free_lskcipher(9)crypto_has_skcipher(9)crypto_skcipher_ivsize(9)crypto_lskcipher_ivsize(9)crypto_skcipher_blocksize(9)crypto_lskcipher_blocksize(9)crypto_skcipher_chunksize(9)crypto_lskcipher_chunksize(9)crypto_skcipher_statesize(9)crypto_lskcipher_statesize(9)crypto_skcipher_setkey(9)crypto_lskcipher_setkey(9)crypto_skcipher_reqtfm(9)crypto_skcipher_encrypt(9)crypto_skcipher_decrypt(9)crypto_skcipher_export(9)crypto_skcipher_import(9)crypto_lskcipher_encrypt(9)crypto_lskcipher_decrypt(9)Symmetric Key Cipher Request Handle(9)crypto_skcipher_reqsize(9)skcipher_request_set_tfm(9)skcipher_request_free(9)skcipher_request_set_callback(9)skcipher_request_set_crypt(9)
that's right, the whole friend group π«Ά iykyk.
anyway, this page lives in ./include/crypto, dated October 2026, and that's the whole manual β mwah, go allocate something cute ππ§ββοΈ
π¦ 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