Implementation of the AES128 CMAC hashing function.
More...
Implementation of the AES128 CMAC hashing function.
◆ AES128_CMAC_BLOCK_SIZE
#define AES128_CMAC_BLOCK_SIZE 16 |
Length of AES128_CMAC block in bytes.
Definition at line 35 of file aes128_cmac.h.
◆ aes128_cmac_final()
Finalizes the CMAC message digest.
- Parameters
-
[in] | ctx | Pointer to the AES128 CMAC context |
[out] | digest | Result location |
◆ aes128_cmac_init()
Initialize AES128 CMAC message digest context.
- Parameters
-
[in] | ctx | Pointer to the AES128 CMAC context to initialize |
[in] | key | Key to be set |
[in] | key_size | Size of the key |
- Returns
- CIPHER_INIT_SUCCESS if the initialization was successful. CIPHER_ERR_INVALID_KEY_SIZE if the key size is not valid.
◆ aes128_cmac_update()
Update the AES128 CMAC context with a portion of the message being hashed.
- Parameters
-
[in] | ctx | Pointer to the AES128 CMAC context to update |
[in] | data | Input data |
[in] | len | Length of data |