Lines Matching refs:rand
89 void smp_proc_passkey(tSMP_CB* p_cb, BT_OCTET8 rand) { in smp_proc_passkey() argument
92 uint8_t* pp = rand; in smp_proc_passkey()
201 [](tSMP_CB* p_cb, BT_OCTET8 rand) { in smp_generate_csrk() argument
203 STREAM_TO_UINT16(div, rand); in smp_generate_csrk()
318 tSMP_STATUS smp_calculate_comfirm(tSMP_CB* p_cb, const Octet16& rand, in smp_calculate_comfirm() argument
334 smp_xor_128(&p1, rand); in smp_calculate_comfirm()
363 smp_debug_print_nbyte_little_endian(p_cb->rand.data(), "local_rand", 16); in smp_generate_confirm()
365 tSMP_STATUS status = smp_calculate_comfirm(p_cb, p_cb->rand, &output); in smp_generate_confirm()
399 [](tSMP_CB* p_cb, BT_OCTET8 rand) { in smp_generate_srand_mrand_confirm() argument
400 memcpy(p_cb->rand.data(), rand, 8); in smp_generate_srand_mrand_confirm()
404 [](tSMP_CB* p_cb, BT_OCTET8 rand) { in smp_generate_srand_mrand_confirm() argument
405 memcpy((void*)&p_cb->rand[8], rand, BT_OCTET8_LEN); in smp_generate_srand_mrand_confirm()
486 static void smp_generate_y(tSMP_CB* p_cb, BT_OCTET8 rand) { in smp_generate_y() argument
491 memcpy(p_cb->enc_rand, rand, BT_OCTET8_LEN); in smp_generate_y()
492 Octet16 output = aes_128(dhk, rand, BT_OCTET8_LEN); in smp_generate_y()
550 [](tSMP_CB* p_cb, BT_OCTET8 rand) { in smp_generate_ltk() argument
552 STREAM_TO_UINT16(div, rand); in smp_generate_ltk()
565 memcpy(text.data(), p_cb->rand.data(), BT_OCTET8_LEN); in smp_calculate_legacy_short_term_key()
569 memcpy(text.data() + BT_OCTET8_LEN, p_cb->rand.data(), BT_OCTET8_LEN); in smp_calculate_legacy_short_term_key()
614 [](tSMP_CB* p_cb, BT_OCTET8 rand) { in smp_create_private_key() argument
615 memcpy((void*)p_cb->private_key, rand, BT_OCTET8_LEN); in smp_create_private_key()
617 [](tSMP_CB* p_cb, BT_OCTET8 rand) { in smp_create_private_key() argument
618 memcpy((void*)&p_cb->private_key[8], rand, BT_OCTET8_LEN); in smp_create_private_key()
620 [](tSMP_CB* p_cb, BT_OCTET8 rand) { in smp_create_private_key() argument
621 memcpy((void*)&p_cb->private_key[16], rand, BT_OCTET8_LEN); in smp_create_private_key()
623 [](tSMP_CB* p_cb, BT_OCTET8 rand) { in smp_create_private_key() argument
624 memcpy((void*)&p_cb->private_key[24], rand, in smp_create_private_key()
756 p_cb->loc_publ_key.x, p_cb->peer_publ_key.x, p_cb->rand, 0); in smp_calculate_local_commitment()
764 p_cb->rand, random_input); in smp_calculate_local_commitment()
833 p_cb->loc_publ_key.x, p_cb->peer_publ_key.x, p_cb->rand, p_cb->rrand); in smp_calculate_numeric_comparison_display_number()
836 p_cb->peer_publ_key.x, p_cb->loc_publ_key.x, p_cb->rrand, p_cb->rand); in smp_calculate_numeric_comparison_display_number()
882 p_cb->dhkey_check = crypto_toolbox::f6(p_cb->mac_key, p_cb->rand, p_cb->rrand, in smp_calculate_local_dhkey_check()
907 Octet16 param_buf = crypto_toolbox::f6(p_cb->mac_key, p_cb->rrand, p_cb->rand, in smp_calculate_peer_dhkey_check()
1036 [](tSMP_CB* p_cb, BT_OCTET8 rand) { in smp_start_nonce_generation() argument
1037 memcpy(p_cb->rand.data(), rand, BT_OCTET8_LEN); in smp_start_nonce_generation()
1039 [](tSMP_CB* p_cb, BT_OCTET8 rand) { in smp_start_nonce_generation() argument
1040 memcpy(p_cb->rand.data() + 8, rand, BT_OCTET8_LEN); in smp_start_nonce_generation()