Lines Matching defs:pub_key
78 DH_get0_key(const DH *dh, const BIGNUM **pub_key, const BIGNUM **priv_key) {
79 if (pub_key != NULL)
80 *pub_key = dh->pub_key;
86 DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key) {
88 if (pub_key == NULL)
91 BN_free(dh->pub_key);
93 dh->pub_key = pub_key;
139 const BIGNUM *pub_key = NULL;
155 DH_get0_key(dhpub, &pub_key, NULL);
156 ret = DH_compute_key(r.base, pub_key, dhpriv);
373 const BIGNUM *pub_key = NULL, *p = NULL, *g = NULL;
395 DH_get0_key(dh, &pub_key, NULL);
396 publen = BN_num_bytes(pub_key);
419 BN_bn2bin(pub_key, r.base);
430 BIGNUM *pub_key = NULL, *p = NULL, *g = NULL;
540 pub_key = BN_bin2bn(r.base, publen, NULL);
541 if (pub_key == NULL) {
545 DH_set0_key(dh, pub_key, NULL);
561 const BIGNUM *pub_key = NULL, *priv_key = NULL, *p = NULL, *g = NULL;
573 DH_get0_key(dh, &pub_key, &priv_key);
606 priv.elements[i].length = BN_num_bytes(pub_key);
607 BN_bn2bin(pub_key, bufs[i]);
628 BIGNUM *pub_key = NULL, *priv_key = NULL, *p = NULL, *g = NULL;
667 pub_key = bn;
672 DH_set0_key(dh, pub_key, priv_key);
683 if (pub_key != NULL)
684 BN_free(pub_key);