Lines Matching refs:pub_key
230 int DH_check_pub_key_ex(const DH *dh, const BIGNUM *pub_key) in DH_check_pub_key_ex() argument
234 if (!DH_check_pub_key(dh, pub_key, &errflags)) in DH_check_pub_key_ex()
250 int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret) in DH_check_pub_key() argument
264 return ossl_ffc_validate_public_key(&dh->params, pub_key, ret); in DH_check_pub_key()
272 int ossl_dh_check_pub_key_partial(const DH *dh, const BIGNUM *pub_key, int *ret) in ossl_dh_check_pub_key_partial() argument
274 return ossl_ffc_validate_public_key_partial(&dh->params, pub_key, ret) in ossl_dh_check_pub_key_partial()
336 BIGNUM *pub_key = NULL; in ossl_dh_check_pairwise() local
341 || dh->pub_key == NULL) in ossl_dh_check_pairwise()
347 pub_key = BN_new(); in ossl_dh_check_pairwise()
348 if (pub_key == NULL) in ossl_dh_check_pairwise()
352 if (!ossl_dh_generate_public_key(ctx, dh, dh->priv_key, pub_key)) in ossl_dh_check_pairwise()
355 ret = BN_cmp(pub_key, dh->pub_key) == 0; in ossl_dh_check_pairwise()
357 BN_free(pub_key); in ossl_dh_check_pairwise()