mbedtls_des_key_check_key_parity() function
Check that key parity on the given key is odd. DES keys are 56 bits long, but each byte is padded with a parity bit to allow verification. \warning DES is considered a weak cipher and its use constitutes a security risk. We recommend considering stronger ciphers instead.
Return value
0 is parity was ok, 1 if parity was not correct.