STRUCT MACSEC_KEY(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct macsec_key (9) β€” Kernel API Manual ✨

okay bestie, so we're literally in the Kernel API Manual today and the main character is struct macsec_key, no cap πŸŽ€


✨ NAME ✨

struct macsec_key β€” the SA key, periodt πŸ”‘

like… it's the key for a Security Association. that's the whole vibe. iykyk πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

struct macsec_key {
    u8 id[MACSEC_KEYID_LEN];
    struct crypto_aead *tfm;
    salt_t salt;
 };
bestie i need you to copy this exactly when you use it β€” character for character, no creative liberties, ok? 😭 the struct is the struct.

🌸 Members 🌸

  • id β€” the user-provided key identifier πŸ’– you hand it over, it holds it, slay.
  • tfm β€” the crypto struct, and honestly it's also where the key storage lives. main character energy for real πŸ”₯
  • salt β€” the salt that gets used to generate the IV in XPN cipher suites ✨ that's its whole job and it ate.

🫢 SEE ALSO 🫢

kernel file ./include/net/macsec.h and its lil friend group, all iconic:

  • struct macsec_rx_sa(9)
  • struct macsec_rx_sc(9)
  • struct macsec_tx_sa(9)
  • struct macsec_tx_sc(9)
  • struct macsec_secy(9)
  • struct macsec_context(9)
  • struct macsec_ops(9)

like, go read them too. they're all connected, it's giving found family 🌈


<anything>πŸ’€ and that's the page, bestie πŸ’€</anything>

this lil number lives in ./include/net, dated October 2026, and it goes by struct macsec_key(9) β€” mwah, go off πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from