Lines Matching refs:priv_key
783 (unsigned char *)dsa->priv_key->d, BN_num_bits(dsa->priv_key),
894 (unsigned char *)dh->priv_key->d, BN_num_bits(dh->priv_key),
925 BIGNUM *priv_key = NULL;
932 if (dh->priv_key == NULL)
934 priv_key = BN_new();
935 if (priv_key == NULL) goto err;
937 bn_wexpand(priv_key, dh->p->top);
939 if (!BN_rand_range(priv_key, dh->p)) goto err;
940 while (BN_is_zero(priv_key));
941 random_bits = BN_num_bits(priv_key);
945 priv_key = dh->priv_key;
970 (unsigned char *)priv_key->d, &priv_key_len,
992 dh->priv_key = priv_key;
993 dh->priv_key->top = (priv_key_len + BN_BITS2-1) / BN_BITS2;