structures being passed in to or out of API functions, and this corrects a
couple of cases found so far.
Also, lop off a couple of bytes of white-space.
A[0]=0;
assert(A == &(b->d[b->dmax]));
}
-
return b;
}
if (tmp->top == BN_NIST_521_TOP)
tmp->d[BN_NIST_521_TOP-1] &= BN_NIST_521_TOP_MASK;
+ bn_fix_top(tmp);
if (!BN_uadd(r, tmp, r))
return 0;
top = r->top;
ret = 1;
err:
BN_CTX_end(ctx);
-
+
return ret;
}
ret=1;
err:
BN_CTX_end(ctx);
+ if(dv) bn_fix_top(dv);
+ if(rem) bn_fix_top(rem);
return(ret);
}