Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/gd/crypto_toolbox/
Daes_cmac.cc47 thread_local tCMAC_CB cmac_cb; variable
109 while (i <= cmac_cb.round) { in cmac_aes_k_calculate()
111 xor_128((Octet16*)&cmac_cb.text[(cmac_cb.round - i) * kOctet16Length], x); in cmac_aes_k_calculate()
113 output = aes_128(key, *(Octet16*)&cmac_cb.text[(cmac_cb.round - i) * kOctet16Length]); in cmac_aes_k_calculate()
129 flag = ((cmac_cb.len % kOctet16Length) == 0 && cmac_cb.len != 0) ? true : false; in cmac_prepare_last_block()
132 xor_128((Octet16*)&cmac_cb.text[0], k1); in cmac_prepare_last_block()
135 padding((Octet16*)&cmac_cb.text[0], (uint8_t)(cmac_cb.len % 16)); in cmac_prepare_last_block()
137 xor_128((Octet16*)&cmac_cb.text[0], k2); in cmac_prepare_last_block()
188 cmac_cb.text = (uint8_t*)alloca(len); in aes_cmac()
189 cmac_cb.round = n; in aes_cmac()
[all …]