![]() |
BALTECH Docs |
BALTECH SDK wrapper functions reference
|
| int aes_cbc_encrypt | ( | aes_ctx | ctx, |
| const unsigned char * | plaintext, | ||
| size_t | plaintext_len, | ||
| unsigned char * | ciphertext, | ||
| const unsigned char | iv[AES_BLOCK_SIZE] | ||
| ) |
Encrypt data using AES-128 in CBC mode.
| ctx | AES context from aes_create_ctx() |
| plaintext | Input data |
| plaintext_len | Length in bytes (must be multiple of AES_BLOCK_SIZE) |
| ciphertext | Output buffer (same length as plaintext) |
| iv | 16-byte initialization vector |