projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
catcrypt: Implement symmetric key-encapsulation and signature schemes.
[u/mdw/catacomb]
/
dh-limlee.c
diff --git
a/dh-limlee.c
b/dh-limlee.c
index
dd11d26
..
3787305
100644
(file)
--- 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)
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 --- */
/* --- 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);
if (!dp->g) {
mp_drop(dp->p);
mp_drop(dp->q);
- return (PGEN_
FAIL
);
+ return (PGEN_
ABORT
);
}
return (PGEN_DONE);
}
}
return (PGEN_DONE);
}