X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/b817bfc642225b8c3c0b6a7e42d1fb949b61a606..02dfbd5b7af7816959dbd39c1fe628451204e35f:/dh-limlee.c diff --git a/dh-limlee.c b/dh-limlee.c index dd11d26..3787305 100644 --- a/dh-limlee.c +++ b/dh-limlee.c @@ -81,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 --- */ @@ -132,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); }