Lines Matching refs:pub_key
123 static int ubsec_dh_compute_key(unsigned char *key,const BIGNUM *pub_key,DH *dh);
852 (unsigned char *)dsa->pub_key->d, BN_num_bits(dsa->pub_key),
876 static int ubsec_dh_compute_key(unsigned char *key,const BIGNUM *pub_key,DH *dh)
889 ret = meth->compute_key(key, pub_key, dh);
895 (unsigned char *)pub_key->d, BN_num_bits(pub_key),
905 ret = meth->compute_key(key, pub_key, dh);
924 BIGNUM *pub_key = NULL;
948 if (dh->pub_key == NULL)
950 pub_key = BN_new();
952 bn_wexpand(pub_key, dh->p->top);
953 if(pub_key == NULL) goto err;
957 pub_key = dh->pub_key;
971 (unsigned char *)pub_key->d, &pub_key_len,
990 dh->pub_key = pub_key;
991 dh->pub_key->top = (pub_key_len + BN_BITS2-1) / BN_BITS2;