Lines Matching +full:t +full:- +full:v
2 * SPDX-License-Identifier: Apache-2.0
19 int bt_crypto_f4(const uint8_t *u, const uint8_t *v, const uint8_t *x, uint8_t z, uint8_t res[16]) in bt_crypto_f4() argument
26 LOG_DBG("v %s", bt_hex(v, 32)); in bt_crypto_f4()
30 * U, V and Z are concatenated and used as input m to the function in bt_crypto_f4()
31 * AES-CMAC and X is used as the key k. in bt_crypto_f4()
39 sys_memcpy_swap(m + 32, v, 32); in bt_crypto_f4()
70 uint8_t t[16], ws[32]; in bt_crypto_f5() local
79 err = bt_crypto_aes_cmac(salt, ws, 32, t); in bt_crypto_f5()
84 LOG_DBG("t %s", bt_hex(t, 16)); in bt_crypto_f5()
88 m[37] = a1->type; in bt_crypto_f5()
89 sys_memcpy_swap(m + 38, a1->a.val, 6); in bt_crypto_f5()
90 m[44] = a2->type; in bt_crypto_f5()
91 sys_memcpy_swap(m + 45, a2->a.val, 6); in bt_crypto_f5()
93 err = bt_crypto_aes_cmac(t, m, sizeof(m), mackey); in bt_crypto_f5()
105 err = bt_crypto_aes_cmac(t, m, sizeof(m), ltk); in bt_crypto_f5()
138 m[51] = a1->type; in bt_crypto_f6()
139 memcpy(m + 52, a1->a.val, 6); in bt_crypto_f6()
140 sys_memcpy_swap(m + 52, a1->a.val, 6); in bt_crypto_f6()
142 m[58] = a2->type; in bt_crypto_f6()
143 memcpy(m + 59, a2->a.val, 6); in bt_crypto_f6()
144 sys_memcpy_swap(m + 59, a2->a.val, 6); in bt_crypto_f6()
160 int bt_crypto_g2(const uint8_t u[32], const uint8_t v[32], const uint8_t x[16], const uint8_t y[16], in bt_crypto_g2()
167 LOG_DBG("v %s", bt_hex(v, 32)); in bt_crypto_g2()
172 sys_memcpy_swap(m + 32, v, 32); in bt_crypto_g2()