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