des3_ede_expand_key(9)
π 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:
0on success β slay, we ate π-EINVALif the input key is rejected π-ENOKEYif 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 π
- Kernel file
./include/crypto/des.h des_expand_key(9)
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
- 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