![]() |
BALTECH Docs |
BALTECH SDK wrapper functions reference
|
| int aes_cbc_mac | ( | aes_ctx | ctx, |
| const unsigned char * | plaintext, | ||
| size_t | plaintext_len, | ||
| unsigned char | mac[AES_BLOCK_SIZE] | ||
| ) |
Calculate CBC-MAC (Cipher Block Chaining Message Authentication Code).
| ctx | AES context from aes_create_ctx() |
| plaintext | Input data |
| plaintext_len | Length in bytes (must be multiple of AES_BLOCK_SIZE) |
| mac | Input: IV (16 bytes), Output: MAC (16 bytes) |