![]() |
BALTECH Docs |
BALTECH SDK wrapper functions reference
|
| 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.
| ctx | AES context from aes_create_ctx() |
| plaintext | 16-byte input block |
| ciphertext | 16-byte output block |