crypto_skcipher_decrypt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the skcipher_request handle, 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