DES_random_key

Generate a random DES key with odd parity that is not a weak key (deprecated).

Synopsis

Declared in <openssl/des.h>

[[deprecated]]
int
DES_random_key(DES_cblock* ret);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
retDestination 8-byte DES key block.