crypto_alloc_lskcipher(9)
okay so bestie π this is crypto_alloc_lskcipher(9) from the Kernel API Manual, and itβs literally the page for grabbing a linear symmetric key cipher handle. slay. β¨
π NAME π
crypto_alloc_lskcipher β allocate linear symmetric key cipher handle
π¦ SYNOPSIS π¦
struct crypto_lskcipher * crypto_alloc_lskcipher (const char *alg_name ,
u32 type , u32 mask );
πΈ ARGUMENTS πΈ
alg_nameβ is thecra_name/ name orcra_driver_name/ driver name of the lskcipher. iykyk πtypeβ specifies the type of the cipher.maskβ specifies the mask for the cipher.
β¨ DESCRIPTION β¨
Allocate a cipher handle for an lskcipher. The returned struct crypto_lskcipher is the cipher handle that is required for any subsequent API invocation for that lskcipher. like, this is your main-character handle for everything after ππ«Ά
π RETURN π
allocated cipher handle in case of success; IS_ERR is true in case of an error, PTR_ERR returns the error code. so if things go off, check IS_ERR and let PTR_ERR spill the error code πβ¨
π SEE ALSO π
go read these, bestie β no cap π¦:
- 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_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_alloc(9)skcipher_request_free(9)skcipher_request_set_callback(9)skcipher_request_set_crypt(9)
okay bye bestie π this page comes from ./include/crypto, dated October 2026, and itβs literally crypto_alloc_lskcipher(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