des_expand_key(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 πŸ¦‹


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