projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: Fix tests for 222c8a43... (mp-modsqrt change).
[u/mdw/catacomb]
/
dh-gen.c
diff --git
a/dh-gen.c
b/dh-gen.c
index
e909989
..
6e77ea7
100644
(file)
--- a/
dh-gen.c
+++ b/
dh-gen.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: dh-gen.c,v 1.
1 2000/02/12 18:21:02
mdw Exp $
+ * $Id: dh-gen.c,v 1.
3 2004/04/08 01:36:15
mdw Exp $
*
* Generate Diffie-Hellman parameters
*
*
* Generate Diffie-Hellman parameters
*
@@
-27,14
+27,6
@@
* MA 02111-1307, USA.
*/
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: dh-gen.c,v $
- * Revision 1.1 2000/02/12 18:21:02 mdw
- * Overhaul of key management (again).
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include "dh.h"
/*----- Header files ------------------------------------------------------*/
#include "dh.h"
@@
-137,7
+129,7
@@
int dh_gen(dh_param *dp, unsigned ql, unsigned pl, unsigned steps, grand *r,
mpmont_create(&p.mm, dp->p);
mp_div(&m, 0, dp->p, dp->q);
i = 0;
mpmont_create(&p.mm, dp->p);
mp_div(&m, 0, dp->p, dp->q);
i = 0;
- p.
f
= m;
+ p.
exp
= m;
p.n = 0;
dp->g = pgen("g", MP_NEW, MP_NEW, event, ectx, 0, prim_step, &i,
1, prim_test, &p);
p.n = 0;
dp->g = pgen("g", MP_NEW, MP_NEW, event, ectx, 0, prim_step, &i,
1, prim_test, &p);