STRUCT OCS_AES_TCTX(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct ocs_aes_tctx(9) πŸ’–

okay so bestie, welcome to the glow-up era of the Linux Kernel API Manual ✨ β€” we're looking at struct ocs_aes_tctx, which is literally the OCS AES Transform context. no cap, that's the whole vibe of this page. it's the transform context. for OCS AES. iconic behavior tbh πŸŽ€


✨ SYNOPSIS ✨

she's structured like this, bestie β€” copy her exactly, don't touch a single character 🫢

struct ocs_aes_tctx {
    struct ocs_aes_dev *aes_dev;
    u8 key[OCS_AES_KEYSIZE_256];
    unsigned int key_len;
    enum ocs_cipher cipher;
    union {
      struct crypto_sync_skcipher *sk;
      struct crypto_aead *aead;
    } sw_cipher;
    bool use_fallback;
 };

🌸 Members 🌸

full cast list, main character energy only 🌈:

  • aes_dev β€” the OCS AES device itself. the whole point, honestly πŸ‘‘
  • key β€” the AES/SM4 key. keep it secret, keep it safe, iykyk πŸ”
  • key_len β€” the length (in bytes) of key. yes, in bytes, don't get cute πŸ’…
  • cipher β€” the OCS cipher to use, and it's either AES or SM4. that's the whole menu, bestie πŸ“
  • sw_cipher β€” the cipher to use as fallback. this is a union, and it's giving "choose one" β€” either struct crypto_sync_skcipher *sk or struct crypto_aead *aead ✨
  • use_fallback β€” whether or not the fallback cipher should be used. a simple bool, a simple queen πŸ¦‹

πŸ”₯ SEE ALSO πŸ”₯

go touch grass in these, fr fr:


ngl bestie, this whole struct lives in ./drivers/crypto/intel/keembay β€” that's the address, don't lose it πŸ’€

okay that's the page!! sourced fresh from the kernel manual life under ./drivers/crypto/intel/keembay, dated October 2026 β€” yes, the future, she's ahead of her time β­πŸ’œ slay, go read the source, ily, bye πŸ§šπŸ’–

πŸ“¦ where this page comes from