Searched refs:pub2 (Results 1 - 4 of 4) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/libcryptoxx-5.6.0/
H A Dbench2.cpp164 SecByteBlock pub1(d.PublicKeyLength()), pub2(d.PublicKeyLength());
166 d.GenerateKeyPair(rng, priv2, pub2);
174 d.Agree(val, priv1, pub2);
H A Dvalidat2.cpp191 SecByteBlock pub1(d.PublicKeyLength()), pub2(d.PublicKeyLength());
195 d.GenerateKeyPair(GlobalRNG(), priv2, pub2); local
200 if (!(d.Agree(val1, priv1, pub2) && d.Agree(val2, priv2, pub1)))
/netgear-R7000-V1.0.7.12_1.2.5/src/router/iputils/racoon/
H A Deaytest.c815 vchar_t p2, *pub2, *priv2, *gxy2; local
834 if (eay_dh_generate(&p2, 2, 96, &pub2, &priv2) < 0) {
839 printf("public key for user 2 = \n"); PVDUMP(pub2);
844 eay_dh_compute(&p1, 2, pub1, priv1, pub2, &gxy1);
850 eay_dh_compute(&p2, 2, pub2, priv2, pub1, &gxy2);
857 vfree(pub2);
H A Dcrypto_openssl.c2134 eay_dh_compute(prime, g, pub, priv, pub2, key)
2135 vchar_t *prime, *pub, *priv, *pub2, **key;
2145 if (eay_v2bn(&dh_pub, pub2) < 0)
2157 dh->length = pub2->l * 8;

Completed in 34 milliseconds