STRUCT CAAM_PKEY_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay so bestie, welcome to the Kernel API Manual β€” this is the whole vibe of struct caam_pkey_info, which is, like, information for CAAM protected key. that's the NAME, that's the assignment, and she ate πŸ’…


✨ SYNOPSIS ✨

here's the actual shape of her, no cap, copy it exactly:

struct caam_pkey_info {
    u8 is_pkey;
    u8 key_enc_algo;
    u16 plain_key_sz;
    u8 key_buf[];
};

that's the whole struct. she's small, she's efficient, she's giving main character energy πŸ¦‹


πŸŽ€ Members πŸŽ€

okay so let's go through her fields one by one, because each one is doing something and we respect her for it:

  • is_pkey β€” this is literally just a flag to identify, if the key is protected. that's it, that's the job 🌸 like a little "yes bestie this one's protected" badge.
  • key_enc_algo β€” this one identifies the algorithm, ccm or ecb. two choices, two vibes, pick your fighter πŸ”₯
  • plain_key_sz β€” size of plain key. she's a u16, she knows how big the plain key is, and honestly? iconic πŸ‘‘
  • key_buf β€” contains key data. the actual payload, the real one, the star of the show ⭐
ngl the [] on key_buf means it's a flexible array member β€” it's just there, chillin' at the end of the struct 🫢

🌈 SEE ALSO 🌈

go read these next, iykyk β€” they're all hanging out in the kernel file ./include/soc/fsl/caam-blob.h:

they're all part of the same blob family bestie, go say hi πŸ’œ


and that's the page! fr fr you understood all of it 😭✨ this one lives over in ./include/soc/fsl and it's dated October 2026 β€” so like, mark your calendar, and remember: struct caam_pkey_info(9) in the Kernel API Manual, periodt πŸ’…πŸ’–πŸŽ€

πŸ“¦ where this page comes from