BALTECH SDK wrapper functions reference

§ aes_encrypt_block()

int aes_encrypt_block ( aes_ctx  ctx,
const unsigned char  plaintext[AES_BLOCK_SIZE],
unsigned char  ciphertext[AES_BLOCK_SIZE] 
)

Encrypt a single 16-byte block using AES-128 in ECB mode.

Parameters
ctxAES context from aes_create_ctx()
plaintext16-byte input block
ciphertext16-byte output block
Returns
AES_OK on success, AES_ERR_* on error
Note
All pointers must be non-NULL