Home
last modified time | relevance | path

Searched refs:cmac_cb (Results 1 – 1 of 1) sorted by relevance

/system/bt/stack/smp/
Dsmp_cmac.c42 tCMAC_CB cmac_cb; variable
119 osi_free(cmac_cb.text); in cmac_aes_cleanup()
120 memset(&cmac_cb, 0, sizeof(tCMAC_CB)); in cmac_aes_cleanup()
141 while (i <= cmac_cb.round) in cmac_aes_k_calculate()
143 smp_xor_128(&cmac_cb.text[(cmac_cb.round - i)*BT_OCTET16_LEN], x); /* Mi' := Mi (+) X */ in cmac_aes_k_calculate()
145 …if (!SMP_Encrypt(key, BT_OCTET16_LEN, &cmac_cb.text[(cmac_cb.round - i)*BT_OCTET16_LEN], BT_OCTET1… in cmac_aes_k_calculate()
189 flag = ((cmac_cb.len % BT_OCTET16_LEN) == 0 && cmac_cb.len != 0) ? TRUE : FALSE; in cmac_prepare_last_block()
191 SMP_TRACE_WARNING("flag = %d round = %d", flag, cmac_cb.round); in cmac_prepare_last_block()
195 smp_xor_128(&cmac_cb.text[0], k1); in cmac_prepare_last_block()
199 padding(&cmac_cb.text[0], (UINT8)(cmac_cb.len % 16)); in cmac_prepare_last_block()
[all …]