~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
prime generation: Deploy the new Baillie--PSW testers.
[catacomb]
/
pub
/
dsa-gen.c
diff --git
a/pub/dsa-gen.c
b/pub/dsa-gen.c
index
8802003
..
5505bea
100644
(file)
--- a/
pub/dsa-gen.c
+++ b/
pub/dsa-gen.c
@@
-137,7
+137,6
@@
int dsa_gen(dsa_param *dp, unsigned ql, unsigned pl, unsigned steps,
dsa_stepctx s;
prim_ctx p;
int i;
dsa_stepctx s;
prim_ctx p;
int i;
- rabin r;
mp *qc;
/* --- Initialize the stepping context --- */
mp *qc;
/* --- Initialize the stepping context --- */
@@
-158,7
+157,7
@@
int dsa_gen(dsa_param *dp, unsigned ql, unsigned pl, unsigned steps,
ds->p = s.seedbuf = xmalloc(sz);
}
if ((dp->q = pgen("q", MP_NEW, MP_NEW, event, ectx, steps, dsa_step, &s,
ds->p = s.seedbuf = xmalloc(sz);
}
if ((dp->q = pgen("q", MP_NEW, MP_NEW, event, ectx, steps, dsa_step, &s,
-
rabin_iters(ql), pgen_test, &r
)) == 0)
+
PGEN_BAILLIEPSWNTESTS, pgen_bailliepswtest, 0
)) == 0)
goto fail_q;
/* --- Find @p@ --- */
goto fail_q;
/* --- Find @p@ --- */
@@
-169,7
+168,7
@@
int dsa_gen(dsa_param *dp, unsigned ql, unsigned pl, unsigned steps,
s.bits = pl;
s.seedbuf = 0;
if ((dp->p = pgen("p", MP_NEW, MP_NEW, event, ectx, 4096, dsa_step, &s,
s.bits = pl;
s.seedbuf = 0;
if ((dp->p = pgen("p", MP_NEW, MP_NEW, event, ectx, 4096, dsa_step, &s,
-
rabin_iters(pl), pgen_test, &r
)) == 0)
+
PGEN_BAILLIEPSWNTESTS, pgen_bailliepswtest, 0
)) == 0)
goto fail_p;
mp_drop(s.q);
if (ds)
goto fail_p;
mp_drop(s.q);
if (ds)