des3_ede_expand_key(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ des3_ede_expand_key(9) πŸŽ€

okay so bestie, welcome to the Kernel API Manual β€” this one's all about des3_ede_expand_key, and it's literally the glow-up era for your triple DES key ✨


✨ NAME ✨

des3_ede_expand_key β€” expands a triple DES input key into a key schedule, no cap πŸ’…


🌸 SYNOPSIS 🌸

int des3_ede_expand_key (struct des3_ede_ctx *ctx , const u8 *key ,
unsigned int keylen );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • ctx β€” the key schedule, aka where the magic lands 🫢
  • key β€” the buffer holding the input key, the main character of this whole operation πŸ‘‘
  • keylen β€” the size of that buffer's contents, so we know how much key we're working with πŸŽ€

πŸ’– RETURN πŸ’–

It's giving simple, honestly:

  • 0 on success β€” slay, we ate πŸ“
  • -EINVAL if the input key is rejected πŸ™ˆ
  • -ENOKEY if the key is accepted but has been found to be weak πŸ’€
⚠️ heads up bestie: weak keys will be rejected (and -EINVAL will be returned) when running in FIPS mode. so like, context matters, iykyk 😭

🌈 SEE ALSO 🌈


alright that's the whole vibe check β€” no extra lore, no invented drama. this page came from ./include/crypto and it's dated October 2026, and the title is ofc des3_ede_expand_key(9) πŸ’œ go expand some keys, periodt 🧚

πŸ“¦ where this page comes from