Home
last modified time | relevance | path

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

/openssl/crypto/dsa/
H A Ddsa_key.c81 BIGNUM *pub_key2 = BN_new(); in dsa_keygen_knownanswer_test() local
83 if (pub_key2 == NULL) in dsa_keygen_knownanswer_test()
93 if (!ossl_dsa_generate_public_key(ctx, dsa, dsa->priv_key, pub_key2)) in dsa_keygen_knownanswer_test()
96 if (BN_num_bytes(pub_key2) > (int)sizeof(bytes)) in dsa_keygen_knownanswer_test()
98 len = BN_bn2bin(pub_key2, bytes); in dsa_keygen_knownanswer_test()
100 if (BN_bin2bn(bytes, len, pub_key2) != NULL) in dsa_keygen_knownanswer_test()
101 ret = !BN_cmp(dsa->pub_key, pub_key2); in dsa_keygen_knownanswer_test()
106 BN_free(pub_key2); in dsa_keygen_knownanswer_test()
/openssl/crypto/ec/
H A Dec_key.c259 EC_POINT *pub_key2 = EC_POINT_new(eckey->group); in ecdsa_keygen_knownanswer_test() local
261 if (pub_key2 == NULL) in ecdsa_keygen_knownanswer_test()
272 if (!EC_POINT_mul(eckey->group, pub_key2, eckey->priv_key, NULL, NULL, ctx)) in ecdsa_keygen_knownanswer_test()
275 if (BN_num_bytes(pub_key2->X) > (int)sizeof(bytes)) in ecdsa_keygen_knownanswer_test()
277 len = BN_bn2bin(pub_key2->X, bytes); in ecdsa_keygen_knownanswer_test()
279 && BN_bin2bn(bytes, len, pub_key2->X) == NULL) in ecdsa_keygen_knownanswer_test()
281 ret = !EC_POINT_cmp(eckey->group, eckey->pub_key, pub_key2, ctx); in ecdsa_keygen_knownanswer_test()
286 EC_POINT_free(pub_key2); in ecdsa_keygen_knownanswer_test()
/openssl/test/
H A Ddhtest.c43 const BIGNUM *pub_key2, *priv_key2; in dh_test() local
110 DH_get0_key(dh, &pub_key2, &priv_key2); in dh_test()
111 if (!TEST_ptr_eq(pub_key2, NULL) in dh_test()
116 if (!TEST_ptr_eq(DH_get0_pub_key(dh), pub_key2) in dh_test()

Completed in 14 milliseconds