• Home
  • Raw
  • Download

Lines Matching refs:rand

111 void smp_proc_passkey(tSMP_CB* p_cb, BT_OCTET8 rand) {  in smp_proc_passkey()  argument
114 uint8_t* pp = rand; in smp_proc_passkey()
223 [](tSMP_CB* p_cb, BT_OCTET8 rand) { in smp_generate_csrk() argument
225 STREAM_TO_UINT16(div, rand); in smp_generate_csrk()
340 tSMP_STATUS smp_calculate_comfirm(tSMP_CB* p_cb, const Octet16& rand, in smp_calculate_comfirm() argument
356 smp_xor_128(&p1, rand); in smp_calculate_comfirm()
385 smp_debug_print_nbyte_little_endian(p_cb->rand.data(), "local_rand", 16); in smp_generate_confirm()
387 tSMP_STATUS status = smp_calculate_comfirm(p_cb, p_cb->rand, &output); in smp_generate_confirm()
421 [](tSMP_CB* p_cb, BT_OCTET8 rand) { in smp_generate_srand_mrand_confirm() argument
422 memcpy(p_cb->rand.data(), rand, 8); in smp_generate_srand_mrand_confirm()
426 [](tSMP_CB* p_cb, BT_OCTET8 rand) { in smp_generate_srand_mrand_confirm() argument
427 memcpy((void*)&p_cb->rand[8], rand, BT_OCTET8_LEN); in smp_generate_srand_mrand_confirm()
511 static void smp_generate_y(tSMP_CB* p_cb, BT_OCTET8 rand) { in smp_generate_y() argument
516 memcpy(p_cb->enc_rand, rand, BT_OCTET8_LEN); in smp_generate_y()
517 Octet16 output = aes_128(dhk, rand, BT_OCTET8_LEN); in smp_generate_y()
575 [](tSMP_CB* p_cb, BT_OCTET8 rand) { in smp_generate_ltk() argument
577 STREAM_TO_UINT16(div, rand); in smp_generate_ltk()
590 memcpy(text.data(), p_cb->rand.data(), BT_OCTET8_LEN); in smp_calculate_legacy_short_term_key()
594 memcpy(text.data() + BT_OCTET8_LEN, p_cb->rand.data(), BT_OCTET8_LEN); in smp_calculate_legacy_short_term_key()
617 [](tSMP_CB* p_cb, BT_OCTET8 rand) { in smp_create_private_key() argument
618 memcpy((void*)p_cb->private_key, 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[8], 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[16], rand, BT_OCTET8_LEN); in smp_create_private_key()
626 [](tSMP_CB* p_cb, BT_OCTET8 rand) { in smp_create_private_key() argument
627 memcpy((void*)&p_cb->private_key[24], rand, in smp_create_private_key()
762 p_cb->loc_publ_key.x, p_cb->peer_publ_key.x, p_cb->rand, 0); in smp_calculate_local_commitment()
770 p_cb->rand, random_input); in smp_calculate_local_commitment()
839 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()
842 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()
888 p_cb->dhkey_check = crypto_toolbox::f6(p_cb->mac_key, p_cb->rand, p_cb->rrand, in smp_calculate_local_dhkey_check()
913 Octet16 param_buf = crypto_toolbox::f6(p_cb->mac_key, p_cb->rrand, p_cb->rand, in smp_calculate_peer_dhkey_check()
1045 [](tSMP_CB* p_cb, BT_OCTET8 rand) { in smp_start_nonce_generation() argument
1046 memcpy(p_cb->rand.data(), rand, BT_OCTET8_LEN); in smp_start_nonce_generation()
1048 [](tSMP_CB* p_cb, BT_OCTET8 rand) { in smp_start_nonce_generation() argument
1049 memcpy(p_cb->rand.data() + 8, rand, BT_OCTET8_LEN); in smp_start_nonce_generation()