Lines Matching refs:cmac_cb
42 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()
201 smp_xor_128(&cmac_cb.text[0], k2); in cmac_prepare_last_block()
305 cmac_cb.text = (UINT8 *)osi_calloc(len); in aes_cipher_msg_auth_code()
306 cmac_cb.round = n; in aes_cipher_msg_auth_code()
310 memcpy(&cmac_cb.text[diff] , input, (int)length); in aes_cipher_msg_auth_code()
311 cmac_cb.len = length; in aes_cipher_msg_auth_code()
313 cmac_cb.len = 0; in aes_cipher_msg_auth_code()
365 memset(&cmac_cb, 0, sizeof(tCMAC_CB));