summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0bde108)
primes (negligible for larger ones).
if (!BN_pseudo_rand(check,BN_num_bits(a),0,0)) goto err;
if (BN_cmp(check, a) >= 0)
BN_sub(check, check, a);
if (!BN_pseudo_rand(check,BN_num_bits(a),0,0)) goto err;
if (BN_cmp(check, a) >= 0)
BN_sub(check, check, a);
+ if (BN_is_zero(check)) BN_one(check);
j=witness(check,a,ctx,ctx2,mont);
if (j == -1) goto err;
if (j)
j=witness(check,a,ctx,ctx2,mont);
if (j == -1) goto err;
if (j)