Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/dh/
Ddh_test.cc433 ScopedDH dhA(td->get_param(nullptr)); in RunRFC5114Tests() local
435 if (!dhA || !dhB) { in RunRFC5114Tests()
440 dhA->priv_key = BN_bin2bn(td->xA, td->xA_len, nullptr); in RunRFC5114Tests()
441 dhA->pub_key = BN_bin2bn(td->yA, td->yA_len, nullptr); in RunRFC5114Tests()
446 if (!dhA->priv_key || !dhA->pub_key || !dhB->priv_key || !dhB->pub_key) { in RunRFC5114Tests()
451 if ((td->Z_len != (size_t)DH_size(dhA.get())) || in RunRFC5114Tests()
456 std::vector<uint8_t> Z1(DH_size(dhA.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()