STRUCT FSCRYPT_PREPARED_KEY(9)
β¨ struct fscrypt_prepared_key(9) β¨
okay bestie, so this is a page from the Kernel API Manual and it's literally about struct fscrypt_prepared_key β no cap, the whole vibe is "a key prepared for actual encryption/decryption" π
π NAME π
struct fscrypt_prepared_key β a key prepared for actual encryption/decryption
like, it's the glow-up era of a key. it's ready. it's been prepped. main character energy fr fr π₯
π¦ SYNOPSIS π¦
struct fscrypt_prepared_key {
struct crypto_sync_skcipher *tfm;
#ifdef CONFIG_FS_ENCRYPTION_INLINE_CRYPT;
struct blk_crypto_key *blk_key;
#endif;
};
that's it, that's the struct π«Ά
π Members π
tfmβ the crypto API transform object β¨ like the actual machinery doing the crypto thingblk_keyβ the key for blk-crypto π
heads up bestie:blk_keyonly exists whenCONFIG_FS_ENCRYPTION_INLINE_CRYPTis defined β it's living inside that#ifdef, so don't come for me if you don't see it in every build π
πΈ Description πΈ
Only one of the fields is non-NULL. periodt. π
so like, it's either the tfm or the blk_key β never both, never neither. it's giving "pick a lane" and honestly? iconic π
π SEE ALSO π
- Kernel file
./fs/crypto/fscrypt_private.hποΈ fscrypt_require_key(9)π
and that's the whole page, bestie, you ate that π go forth and encrypt π
β mwah, this one's from ./fs/crypto, dated October 2026, in the Kernel API Manual π§β¨
π¦ 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