22#ifndef HASHES_AES128_CMAC_H
23#define HASHES_AES128_CMAC_H
35#define AES128_CMAC_BLOCK_SIZE 16
62 const uint8_t *key, uint8_t key_size);
73 const void *data,
size_t len);
Headers for the packet encryption class.
int aes128_cmac_init(aes128_cmac_context_t *ctx, const uint8_t *key, uint8_t key_size)
Initialize AES128 CMAC message digest context.
void aes128_cmac_final(aes128_cmac_context_t *ctx, void *digest)
Finalizes the CMAC message digest.
void aes128_cmac_update(aes128_cmac_context_t *ctx, const void *data, size_t len)
Update the AES128 CMAC context with a portion of the message being hashed.
#define AES128_CMAC_BLOCK_SIZE
Length of AES128_CMAC block in bytes.
stdio wrapper to extend the C libs stdio
AES128_CMAC calculation context.
uint32_t M_n
last byte in last block
cipher_t aes128_ctx
AES128 context.
basic struct for using block ciphers contains the cipher interface and the context