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

Name

Description

input

8‐byte input block.

output

8‐byte output block (may equal input).

ks

Expanded DES key schedule.

enc

DES_ENCRYPT to encrypt, or DES_DECRYPT to decrypt.

Created with MrDocs