Lines Matching refs:pub_key
229 int DH_check_pub_key_ex(const DH *dh, const BIGNUM *pub_key)
233 if (!DH_check_pub_key(dh, pub_key, &errflags))
249 int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret)
263 return ossl_ffc_validate_public_key(&dh->params, pub_key, ret);
271 int ossl_dh_check_pub_key_partial(const DH *dh, const BIGNUM *pub_key, int *ret)
273 return ossl_ffc_validate_public_key_partial(&dh->params, pub_key, ret);
334 BIGNUM *pub_key = NULL;
339 || dh->pub_key == NULL)
345 pub_key = BN_new();
346 if (pub_key == NULL)
350 if (!ossl_dh_generate_public_key(ctx, dh, dh->priv_key, pub_key))
353 ret = BN_cmp(pub_key, dh->pub_key) == 0;
355 BN_free(pub_key);