Lines Matching refs:pub_key
96 if ((dh->pub_key = ASN1_INTEGER_to_BN(public_key, NULL)) == NULL) { in dh_pub_decode()
118 ASN1_INTEGER *pub_key = NULL; in dh_pub_encode() local
134 pub_key = BN_to_ASN1_INTEGER(dh->pub_key, NULL); in dh_pub_encode()
135 if (pub_key == NULL) in dh_pub_encode()
138 penclen = i2d_ASN1_INTEGER(pub_key, &penc); in dh_pub_encode()
140 ASN1_INTEGER_free(pub_key); in dh_pub_encode()
248 BIGNUM *priv_key, *pub_key; in do_dh_print() local
256 pub_key = x->pub_key; in do_dh_print()
258 pub_key = NULL; in do_dh_print()
261 || (ptype > 0 && pub_key == NULL)) { in do_dh_print()
280 if (!ASN1_bn_print(bp, "public-key:", pub_key, NULL, indent)) in do_dh_print()
368 if (BN_cmp(b->pkey.dh->pub_key, a->pkey.dh->pub_key) != 0) in dh_pub_cmp()
432 if (dh->pub_key == NULL) { in dh_pkey_public_check()
437 return DH_check_pub_key_ex(dh, dh->pub_key); in dh_pkey_public_check()
460 const BIGNUM *pub_key = DH_get0_pub_key(dh); in dh_pkey_export_to() local
485 if (pub_key != NULL) { in dh_pkey_export_to()
486 if (!OSSL_PARAM_BLD_push_BN(tmpl, OSSL_PKEY_PARAM_PUB_KEY, pub_key)) in dh_pkey_export_to()