Merge branch 'bugfix/fix_crash_when_using_aes_128' into 'master'

fix(bt): Fix bug while calculating block cipher using aes-128

See merge request espressif/esp-idf!25476
This commit is contained in:
Island 2023-09-01 15:37:32 +08:00
commit 6b14a61544

View File

@ -133,7 +133,7 @@ static void cmac_aes_cleanup(void)
static BOOLEAN cmac_aes_k_calculate(BT_OCTET16 key, UINT8 *p_signature, UINT16 tlen)
{
tSMP_ENC output;
UINT8 i = 1, err = 0;
UINT16 i = 1, err = 0;
UINT8 x[16] = {0};
UINT8 *p_mac;