crypto_des3_ede_verify_key(9)
π NAME π
okay so bestie, welcome to the crypto_des3_ede_verify_key(9) page from the Kernel API Manual π«Ά and the name is literally crypto_des3_ede_verify_key β Check whether a DES3-EDE key is weak π
periodt.
β¨ SYNOPSIS β¨
int crypto_des3_ede_verify_key (struct crypto_tfm *tfm , const u8 *key
);
copy that exactly, no cap β spaces, punctuation, the whole vibe π.
π ARGUMENTS π
tfmβ the crypto algo π«keyβ the key buffer ποΈ
πΈ DESCRIPTION πΈ
okay so here's the actual vibe check: it returns -EINVAL if the key is weak and the crypto TFM does not permit weak keys, or when running in FIPS mode π. Otherwise, 0 is returned β¨.
Note that some keys are rejected in FIPS mode even if weak keys are permitted by the TFM flags π β yes, even then. FIPS said nope, fr fr.
Also, bestie, it is the job of the caller to ensure that the size of the key equals DES3_EDE_KEY_SIZE π
. that one is on the caller, not the function. don't skip it π«Ά.
π¦ SEE ALSO π¦
- Kernel file
./include/crypto/internal/des.h crypto_des_verify_key(9)
with all my love from source/version ./include/crypto/internal, dated October 2026 β crypto_des3_ede_verify_key(9) out ππ
π¦ 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