Advanced Encryption Standard (AES) is widely adopted symmetric Encrypt/Decrypt algorithm provides information security such as confidentiality ..
To use the AES driver to do Encryption and decryption. Use the following APIs:
To use the AES driver to do CMAC. Use the following APIs:
#include <stdio.h>
#include <string.h>
#define APP_AES_OUTPUT_LENGTH (16)
uint8_t gCryptoAesTestBuf[16]={0x81,0xEA,0x5B,0xA4,0x69,0x45,0xC1,0x70,0x5F,0x6F,0x89,0x77,0x88,0x68,0xCC,0x67};
uint8_t gCryptoAesTestKey[32]={0x33,0xA3,0x66,0x46,0xFE,0x56,0xF7,0x0D,0xC0,0xC5,0x1A,0x31,0x17,0xE6,0x39,0xF1,0x82,0xDE,0xF8,0xCA,0xB5,0xC0,0x66,0x71,0xEE,0xA0,0x40,0x7C,0x48,0xA9,0xC7,0x57};
uint8_t gCryptoAesTestIv[16]={0x7C,0xE2,0xAB,0xAF,0x8B,0xEF,0x23,0xC4,0x81,0x6D,0xC8,0xCE,0x84,0x20,0x48,0xA7};