AES_ecb_encrypt

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

Synopsis

Declared in <openssl/aes.h>

[[deprecated]]
void
AES_ecb_encrypt(
    unsigned char const* in,
    unsigned char* out,
    AES_KEY const* key,
    int const enc);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Parameters

NameDescription
in16-byte input block.
out16-byte output buffer (may equal in).
keyExpanded AES key from AES_set_encrypt_key() or AES_set_decrypt_key().
encAES_ENCRYPT to encrypt, or AES_DECRYPT to decrypt.