~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
base/regdump.[ch]: Add a feature for printing plain messages.
[catacomb]
/
utils
/
ecptdecompress.c
diff --git
a/utils/ecptdecompress.c
b/utils/ecptdecompress.c
index
09e1f88
..
61fb79f
100644
(file)
--- a/
utils/ecptdecompress.c
+++ b/
utils/ecptdecompress.c
@@
-5,6
+5,7
@@
#include <mLib/alloc.h>
#include <mLib/hex.h>
#include <mLib/dstr.h>
#include <mLib/alloc.h>
#include <mLib/hex.h>
#include <mLib/dstr.h>
+#include <mLib/macros.h>
#include "ec.h"
#include "mp.h"
#include "ec.h"
#include "mp.h"
@@
-126,12
+127,10
@@
int main(int argc, char *argv[])
mp_drop(y); mp_drop(yy);
}
mp_drop(y); mp_drop(yy);
}
- if ((err = ec_checkinfo(&ei, &rand_global)) != 0)
{
+ if ((err = ec_checkinfo(&ei, &rand_global)) != 0)
fprintf(stderr, "bad curve: %s\n", err);
fprintf(stderr, "bad curve: %s\n", err);
- exit(0);
- }
puthex("p", ei.c->f->m, 0);
puthex("p", ei.c->f->m, 0);
- if (
strcmp(F_NAME(ei.c->f), "binnorm") == 0
) {
+ if (
STRCMP(F_NAME(ei.c->f), ==, "binnorm")
) {
fctx_binnorm *fc = (fctx_binnorm *)ei.c->f;
puthex("beta", fc->ntop.r[fc->ntop.n - 1], c->f->noctets);
}
fctx_binnorm *fc = (fctx_binnorm *)ei.c->f;
puthex("beta", fc->ntop.r[fc->ntop.n - 1], c->f->noctets);
}