des_expand_key(9)
β¨ NAME β¨
okay bestie, welcome to the des_expand_key(9) page in the Kernel API Manual π«Ά β this is the function that expands a DES input key into a key schedule. literally its whole job. π
πΈ SYNOPSIS πΈ
no cap, here's the signature exactly:
int des_expand_key (struct des_ctx *ctx , const u8 *key , unsigned int
keylen );
π ARGUMENTS π
ctxβ the key schedule. that's the vibe.keyβ buffer containing the input key. the actual key material goes here, bestie.keylenβ size of the buffer contents. yes, it matters.
π RETURN π
0β success. we love to see it. β¨-EINVALβ the input key is rejected. not iconic, but that's the answer.-ENOKEYβ the key is accepted but has been found to be weak. so it's accepted and flagged, and that's why you get-ENOKEY. π
π¦ SEE ALSO π¦
- Kernel file
./include/crypto/des.h des3_ede_expand_key(9)
byeee π§π β this page came from source/version ./include/crypto, dated October 2026, and it's the des_expand_key(9) page. mwah π
π¦ 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