STRUCT AES_CMAC_KEY(9)
β¨ struct aes_cmac_key(9) β¨
okay bestie so this is a page from the Kernel API Manual and it's literally all about struct aes_cmac_key β no cap, that's the whole vibe π
πΈ NAME πΈ
struct aes_cmac_key β the prepared key for AES-CMAC or AES-XCBC-MAC π
Like, it's the key, but prepared, y'know? It's giving "I've already done my skincare routine" energy. β¨
π¦ SYNOPSIS π¦
struct aes_cmac_key {
struct aes_enckey aes;
union {
u8 b[AES_BLOCK_SIZE];
__be64 w[2];
} k_final[2];
};
ok so that's the whole struct, copied exactly, don't come for me π keep it character-for-character bestie.
π Members π
aesβ the AES key for cipher block chaining. that's her. the main character key π₯k_finalβ the finalization subkeys for the final block, and the way this works is so specific so listen up π«Ά:k_final[0](that's CMAC K1, XCBC-MAC K2) gets used if it's a full block. andk_final[1](that's CMAC K2, XCBC-MAC K3) gets used if it's a partial block. yes bestie, [0] for full, [1] for partial, write it down π
π SEE ALSO π
go look at the kernel file ./include/crypto/aes-cbc-macs.h β it's got the whole friend group in there:
aes_cmac_zeroize_key(9)struct aes_cmac_ctx(9)aes_cmac_zeroize_ctx(9)aes_cmac_preparekey(9)aes_xcbcmac_preparekey(9)aes_cmac_init(9)aes_cmac_update(9)aes_cmac_final(9)aes_cmac(9)
literally the whole squad, iykyk π
π§ and that's the page!! sourced from ./include/crypto, dated October 2026 β mwah, iconic, periodt. bye bestie, go prep those keys π
βπ
π¦ 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