Lines Matching refs:pub_key
126 static int ubsec_dh_compute_key(unsigned char *key, const BIGNUM *pub_key,
873 (unsigned char *)dsa->pub_key->d,
874 BN_num_bits(dsa->pub_key),
900 static int ubsec_dh_compute_key(unsigned char *key, const BIGNUM *pub_key,
911 ret = meth->compute_key(key, pub_key, dh);
918 (unsigned char *)pub_key->d,
919 BN_num_bits(pub_key),
929 ret = meth->compute_key(key, pub_key, dh);
944 BIGNUM *pub_key = NULL;
968 if (dh->pub_key == NULL) {
969 pub_key = BN_new();
970 if (pub_key == NULL)
973 if (bn_wexpand(pub_key, dh->p->top) == NULL)
976 pub_key = dh->pub_key;
990 (unsigned char *)pub_key->d,
1011 dh->pub_key = pub_key;
1012 dh->pub_key->top = (pub_key_len + BN_BITS2 - 1) / BN_BITS2;