mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
fix(bt): Fix bug while calculating block cipher using aes-128
This commit is contained in:
committed by
chenjianhua
parent
ed1a83a93f
commit
4e6a831d57
@ -133,7 +133,7 @@ static void cmac_aes_cleanup(void)
|
|||||||
static BOOLEAN cmac_aes_k_calculate(BT_OCTET16 key, UINT8 *p_signature, UINT16 tlen)
|
static BOOLEAN cmac_aes_k_calculate(BT_OCTET16 key, UINT8 *p_signature, UINT16 tlen)
|
||||||
{
|
{
|
||||||
tSMP_ENC output;
|
tSMP_ENC output;
|
||||||
UINT8 i = 1, err = 0;
|
UINT16 i = 1, err = 0;
|
||||||
UINT8 x[16] = {0};
|
UINT8 x[16] = {0};
|
||||||
UINT8 *p_mac;
|
UINT8 *p_mac;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user