crypto_des3_ede_verify_key(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

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