crypto_des_verify_key(9)
π 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 π₯
- Kernel file
./include/crypto/internal/des.hπ crypto_des3_ede_verify_key(9)β her 3DES cousin, icons only π
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
- 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