STRUCT FSCRYPT_PREPARED_KEY(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 thing
  • blk_key β€” the key for blk-crypto πŸ”‘
heads up bestie: blk_key only exists when CONFIG_FS_ENCRYPTION_INLINE_CRYPT is 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 🌈


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