STRUCT SKCIPHER_REQUEST(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ struct skcipher_request(9) πŸ¦‹

okay so this is straight out of the Kernel API Manual, and today's main character is struct skcipher_request β€” literally the request object for symmetric key ciphers. bestie, this is the thing you hand to the kernel when you're like "hey. encrypt this. or decrypt this. idk you decide." πŸ’…


✨ NAME ✨

struct skcipher_request β€” Symmetric key cipher request πŸŽ€


🌸 SYNOPSIS 🌸

struct skcipher_request {
    unsigned int cryptlen;
    u8 *iv;
    struct scatterlist *src;
    struct scatterlist *dst;
    struct crypto_async_request base;
    void *__ctx[];
 };

look at her. she's iconic. she's a struct. no cap, this is the whole shape of it, character for character, don't touch anything πŸ‘‘


🫢 Members 🫢

  • cryptlen β€” the number of bytes to encrypt or decrypt. so like, how much crypto we're doing. the byte count, periodt. πŸ“
  • iv β€” the Initialisation Vector. yes, that IV. the lil random-ish starting block that makes your cipher not boring and repetitive πŸ™ˆ
  • src β€” the Source SG list (scatterlist). where the data's coming from πŸ’–
  • dst β€” the Destination SG list (scatterlist). where the data's going to πŸ’«
  • base β€” the underlying async request, of type struct crypto_async_request. this is the async plumbing underneath, the backstage crew of the whole operation 🎬
  • __ctx β€” start of private context data. it's an array (void *__ctx[]), and it's where the private stuff begins. iykyk πŸ”₯

πŸ’€ SEE ALSO πŸ’€

like, go read these too, they're all in the Kernel file ./include/crypto/skcipher.h:

that's the whole friend group, go say hi 🌈


lowkey a whole reading list, but that's what the kernel docs are for bestie 🧚 study up!

and that's the page!! this one lives in ./include/crypto and it's dated October 2026 β€” mwah, bye, go encrypt something responsibly πŸ’œπŸ“β­

πŸ“¦ where this page comes from