Home
last modified time | relevance | path

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

/Zephyr-Core-3.4.0/tests/bluetooth/bt_crypto/src/
Dtest_bt_crypto.c85 uint8_t mackey[16], ltk[16]; in ZTEST() local
87 bt_crypto_f5(w, n1, n2, &a1, &a2, mackey, ltk); in ZTEST()
88 zassert_mem_equal(mackey, exp_mackey, 16); in ZTEST()
/Zephyr-Core-3.4.0/subsys/bluetooth/crypto/
Dbt_crypto.c79 const bt_addr_le_t *a2, uint8_t *mackey, uint8_t *ltk) in bt_crypto_f5() argument
115 err = bt_crypto_aes_cmac(t, m, sizeof(m), mackey); in bt_crypto_f5()
120 LOG_DBG("mackey %1s", bt_hex(mackey, 16)); in bt_crypto_f5()
122 sys_mem_swap(mackey, 16); in bt_crypto_f5()
Dbt_crypto.h61 const bt_addr_le_t *a2, uint8_t *mackey, uint8_t *ltk);
/Zephyr-Core-3.4.0/subsys/bluetooth/host/
Dsmp.c181 uint8_t mackey[16]; member
3295 &smp->chan.chan.conn->le.resp_addr, smp->mackey, smp->tk)) { in compute_and_send_central_dhcheck()
3300 if (bt_crypto_f6(smp->mackey, smp->prnd, smp->rrnd, r, &smp->preq[1], in compute_and_send_central_dhcheck()
3340 &smp->chan.chan.conn->le.resp_addr, smp->mackey, smp->tk)) { in compute_and_check_and_send_periph_dhcheck()
3346 if (bt_crypto_f6(smp->mackey, smp->prnd, smp->rrnd, r, &smp->prsp[1], in compute_and_check_and_send_periph_dhcheck()
3362 if (bt_crypto_f6(smp->mackey, smp->rrnd, smp->prnd, r, &smp->preq[1], in compute_and_check_and_send_periph_dhcheck()
4286 if (bt_crypto_f6(smp->mackey, smp->rrnd, smp->prnd, r, &smp->prsp[1], in smp_dhkey_check()
5071 uint8_t mackey[16], ltk[16]; in smp_f5_test() local
5074 err = bt_crypto_f5(w, n1, n2, &a1, &a2, mackey, ltk); in smp_f5_test()
5079 if (memcmp(mackey, exp_mackey, 16) || memcmp(ltk, exp_ltk, 16)) { in smp_f5_test()