Bladeren bron

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

zhanghaipeng 2 jaren geleden
bovenliggende
commit
faff6d3ee3
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      components/bt/host/bluedroid/stack/smp/smp_cmac.c

+ 1 - 1
components/bt/host/bluedroid/stack/smp/smp_cmac.c

@@ -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;