Lines Matching refs:dv
67 int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d,
86 if (dv != NULL) BN_zero(dv);
92 if (dv == NULL) dv = BN_CTX_get(ctx);
94 if (D == NULL || dv == NULL || rem == NULL)
102 /* The next 2 are needed so we can do a dv->d[0]|=1 later
104 BN_zero(dv);
105 bn_wexpand(dv,1);
106 dv->top=1;
111 if (!BN_lshift1(dv,dv)) goto end;
114 dv->d[0]|=1;
121 dv->neg=m->neg^d->neg;
172 /* BN_div computes dv := num / divisor, rounding towards zero, and sets up
173 * rm such that dv*divisor + rm = num holds.
175 * dv->neg == num->neg ^ divisor->neg (unless the result is zero)
177 * If 'dv' or 'rm' is NULL, the respective value is not returned.
179 int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
188 bn_check_top(dv);
203 if (dv != NULL) BN_zero(dv);
211 if (dv == NULL)
213 else res=dv;