crypto_des_verify_key(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… crypto_des_verify_key(9) β€” like, the Kernel API Manual page you actually wanna read

okay so bestie, welcome to crypto_des_verify_key(9), straight out of the Kernel API Manual ✨ this one's a little baby function with one (1) job and honestly? she ate. let's get into it πŸŽ€


🌸 NAME 🌸

crypto_des_verify_key β€” checks whether a DES key is weak πŸ”πŸ’€


✨ SYNOPSIS ✨

int crypto_des_verify_key (struct crypto_tfm *tfm , const u8 *key );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • tfm β€” the crypto algo, aka the main character of this whole situation πŸ‘‘
  • key β€” the key buffer, where the key itself lives πŸ—οΈ

πŸ’– DESCRIPTION πŸ’–

so here's the tea β˜• β€” this function returns -EINVAL if the key is weak and the crypto TFM does not permit weak keys. otherwise? you get 0. slay, simple. ✨

ngl though, there's a little responsibility clause here: it is the job of the caller to ensure that the size of the key equals DES_KEY_SIZE. so like, do your homework before you call her, bestie 🫢 not me stressing about buffer sizes 😭

fr fr, double-check that key length yourself β€” this function is not doing it for you πŸ’…

πŸ”₯ SEE ALSO πŸ”₯


aaaaand that's the whole page, periodt. πŸŽ€ this cutie lives in ./include/crypto/internal and the manual's dated October 2026 β€” so like, mark your calendars, iykyk πŸ“…πŸ’œ mwah, go verify some keys responsibly πŸ§šβ€β™€οΈβ­

πŸ“¦ where this page comes from