#include <mLib/alloc.h>
#include <mLib/hex.h>
#include <mLib/dstr.h>
+#include <mLib/macros.h>
#include "ec.h"
#include "mp.h"
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);
- exit(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);
}