Lines Matching refs:priv_key
782 (unsigned char *)dsa->priv_key->d, BN_num_bits(dsa->priv_key),
893 (unsigned char *)dh->priv_key->d, BN_num_bits(dh->priv_key),
924 BIGNUM *priv_key = NULL;
931 if (dh->priv_key == NULL)
933 priv_key = BN_new();
934 if (priv_key == NULL) goto err;
936 if(bn_wexpand(priv_key, dh->p->top) == NULL) goto err;
938 if (!BN_rand_range(priv_key, dh->p)) goto err;
939 while (BN_is_zero(priv_key));
940 random_bits = BN_num_bits(priv_key);
944 priv_key = dh->priv_key;
969 (unsigned char *)priv_key->d, &priv_key_len,
991 dh->priv_key = priv_key;
992 dh->priv_key->top = (priv_key_len + BN_BITS2-1) / BN_BITS2;