KT24-1110_65E-HA-651B/include_lib/system/crypto_toolbox/aes_cmac.h

11 lines
369 B
C
Raw Normal View History

2024-11-10 10:44:17 +00:00
#ifndef AES_CMAC_H
#define AES_CMAC_H
#include <stdint.h>
typedef uint8_t sm_key_t[16];
void aes128_calc_cyphertext(const uint8_t key[16], const uint8_t plaintext[16], uint8_t cyphertext[16]);
void aes_cmac_calc_subkeys(sm_key_t k0, sm_key_t k1, sm_key_t k2);
void aes_cmac(sm_key_t aes_cmac, const sm_key_t key, const uint8_t *data, int sm_cmac_message_len);
#endif