X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/020e6360120e2d6d20d10ab7920bf852fca25325..02dfbd5b7af7816959dbd39c1fe628451204e35f:/dh-limlee.c diff --git a/dh-limlee.c b/dh-limlee.c index 2027617..3787305 100644 --- a/dh-limlee.c +++ b/dh-limlee.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: dh-limlee.c,v 1.2 2000/07/29 17:02:00 mdw Exp $ + * $Id: dh-limlee.c,v 1.3 2004/04/08 01:36:15 mdw Exp $ * * Generate Diffie-Hellman parameters from Lim-Lee primes * @@ -27,18 +27,6 @@ * MA 02111-1307, USA. */ -/*----- Revision history --------------------------------------------------* - * - * $Log: dh-limlee.c,v $ - * Revision 1.2 2000/07/29 17:02:00 mdw - * (dh_limlee): Bug fix. Return @dp->q@ as the subgroup order, which isn't - * necessarily the first factor. - * - * Revision 1.1 2000/07/29 10:01:31 mdw - * Diffie-Hellman parameter generation based on Lim-Lee primes. - * - */ - /*----- Header files ------------------------------------------------------*/ #include "dh.h" @@ -93,7 +81,7 @@ int dh_limlee(dh_param *dp, unsigned ql, unsigned pl, if ((dp->p = limlee("p", MP_NEW, MP_NEW, ql, pl, r, steps, oev, oec, iev, iec, &nff, &ff)) == 0) - return (PGEN_FAIL); + return (PGEN_ABORT); /* --- Now find a primitive element --- */ @@ -144,7 +132,7 @@ int dh_limlee(dh_param *dp, unsigned ql, unsigned pl, if (!dp->g) { mp_drop(dp->p); mp_drop(dp->q); - return (PGEN_FAIL); + return (PGEN_ABORT); } return (PGEN_DONE); }