STRUCT OCS_AES_TCTX(9)
π 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) ofkey. yes, in bytes, don't get cute πcipherβ the OCS cipher to use, and it's eitherAESorSM4. that's the whole menu, bestie πsw_cipherβ the cipher to use as fallback. this is a union, and it's giving "choose one" β eitherstruct crypto_sync_skcipher *skorstruct 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:
- Kernel file
./drivers/crypto/intel/keembay/keembay-ocs-aes-core.c struct ocs_aes_rctx(9)kmb_ocs_aead_dma_prepare(9)
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
- 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