crypto_skcipher_decrypt(9)
π crypto_skcipher_decrypt(9) β like, the kernel API manual entry, bestie β¨
okay so real talk, this is a page straight out of the Kernel API Manual, and it's about one very specific little function that does one very specific little thing: it decrypts ciphertext. that's it. that's the whole vibe. let's get into it π
β¨ NAME β¨
crypto_skcipher_decrypt β decrypt ciphertext π
like yes, that's literally the whole name, and honestly? iconic. it does exactly what it says on the tin, no cap.
πΈ SYNOPSIS πΈ
int crypto_skcipher_decrypt (struct skcipher_request *req );
that's the whole signature, bestie. one function, one argument, returns an int. we love a clean little API moment π«Ά
π¦ ARGUMENTS π¦
reqβ a reference to theskcipher_requesthandle, which is the little container that holds, like, all the information needed to actually perform the cipher operation. everything. the whole info. it's giving "prepared bag before a trip" energy π
π DESCRIPTION π
so what does it do? it decrypts ciphertext data using that skcipher_request handle. that's the whole thing. you hand it the request, it does the decryption. simple. elegant. slay. β¨
and the actual data structure, plus how you fill it up with data β the way you stuff it with the info it needs β that whole conversation lives with the skcipher_request_* functions. so if you're like "wait, how do i even populate this thing??" go read those, iykyk π§
π₯ RETURN π₯
0β the cipher operation was successful, we ate, no notes π< 0β an error occurred π (something went wrong, go check)
π SEE ALSO π
okay so this is the part where it links, like, everything related. and i mean everything. grab a snack, this list is long and honestly kind of stunning:
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_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)
ok that's genuinely the whole list, don't @ me, i listed every single one π
and that's the page!! π this little beauty lives at ./include/crypto and the manual's dated October 2026, so like... mark your calendar bestie β bye, love u, go decrypt something 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