mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-03 23:47:08 +00:00
11 lines
374 B
C
11 lines
374 B
C
#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
|