Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/dh/
Ddh_test.cc434 ScopedDH dhB(td->get_param(nullptr)); in RunRFC5114Tests() local
435 if (!dhA || !dhB) { in RunRFC5114Tests()
443 dhB->priv_key = BN_bin2bn(td->xB, td->xB_len, nullptr); in RunRFC5114Tests()
444 dhB->pub_key = BN_bin2bn(td->yB, td->yB_len, nullptr); in RunRFC5114Tests()
446 if (!dhA->priv_key || !dhA->pub_key || !dhB->priv_key || !dhB->pub_key) { in RunRFC5114Tests()
452 (td->Z_len != (size_t)DH_size(dhB.get()))) { in RunRFC5114Tests()
457 std::vector<uint8_t> Z2(DH_size(dhB.get())); in RunRFC5114Tests()
460 int ret1 = DH_compute_key(Z1.data(), dhB->pub_key, dhA.get()); in RunRFC5114Tests()
461 int ret2 = DH_compute_key(Z2.data(), dhA->pub_key, dhB.get()); in RunRFC5114Tests()