DES_ecb_encrypt

Encrypt or decrypt one 8-byte DES block in ECB mode (deprecated; prefer EVP).

Synopsis

Declared in <openssl/des.h>

[[deprecated]]
void
DES_ecb_encrypt(
    const_DES_cblock* input,
    DES_cblock* output,
    DES_key_schedule* ks,
    int enc);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Parameters

NameDescription
input8-byte input block.
output8-byte output block (may equal input).
ksExpanded DES key schedule.
encDES_ENCRYPT to encrypt, or DES_DECRYPT to decrypt.