DES_set_key_checked

Expand a DES key into a key schedule after checking parity and weak keys (deprecated).

Synopsis

Declared in <openssl/des.h>

[[deprecated]]
int
DES_set_key_checked(
    const_DES_cblock* key,
    DES_key_schedule* schedule);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

0 on success, -1 on parity error, or -2 if key is a weak key.

Parameters

NameDescription
keyEight-byte DES key.
scheduleDestination expanded key schedule.