Encrypt or decrypt one 16-byte AES block in ECB mode (deprecated; prefer EVP).
Declared in <openssl/aes.h>
[[deprecated]]
void
AES_ecb_encrypt(
unsigned char const* in,
unsigned char* out,
AES_KEY const* key,
int const enc);
Deprecated. Use of this entity is allowed but discouraged.
| Name | Description |
|---|---|
| in | 16-byte input block. |
| out | 16-byte output buffer (may equal in). |
| key | Expanded AES key from AES_set_encrypt_key() or AES_set_decrypt_key(). |
| enc | AES_ENCRYPT to encrypt, or AES_DECRYPT to decrypt. |