/******************************************************************************/
/* Williams Advanced Engineering Limited                     Copyright(C) 2021*/
/* Grove                                                  All rights reserved */
/*                                                                            */
/******************************************************************************/

#ifndef CMAC_H
#define CMAC_H

#include "hal_stdtypes.h"

#define const_Bsize 16

extern uint8* aes_cmac(uint8* in, unsigned int length, uint8* out, uint8* key);

boolean verify_mac(uint8* in, unsigned int length, uint8* out, uint8* key);

void GenerateSubkey(uint8* key, uint8* K1, uint8* K2);

#endif // !CMAC_H
