crypto_krb5enc_extractkeys(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay bestie, welcome to the Kernel API Manual page for crypto_krb5enc_extractkeys(9) πŸ’–. This one is here to extract the Ke and Ki keys from the key blob. that's the assignment, no cap. ✨

✨ SYNOPSIS ✨

Here's the signature, exactly as it's giving:

int crypto_krb5enc_extractkeys (struct crypto_authenc_keys *keys , const
       u8 *key , unsigned int keylen );

🫢 ARGUMENTS 🫢

  • keys β€” where to put the key sizes and pointers, bestie. πŸŽ€
  • key β€” the encoded key material. πŸ”‘
  • keylen β€” the amount of key material. πŸ“

🧚 DESCRIPTION 🧚

okay so this is the part where we decode the key blob we're given. It starts with an rtattr that tells you both the format and the length. The format CRYPTO_AUTHENC_KEYA_PARAM is literally this layout:

rtattr || __be32 enckeylen || authkey || enckey
⚠️ endianness check, bestie: the rtattr is in cpu-endian form, unlike enckeylen. This must be handled correctly in static testmgr data β€” no ignoring it, fr fr. 😭

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./crypto/krb5enc.c πŸ¦‹

made with πŸ’– from source ./crypto β€” the version/date stamp is October 2026 β€” and yeah, this whole vibe is crypto_krb5enc_extractkeys(9), periodt. πŸŽ€βœ¨

πŸ“¦ where this page comes from