projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Oops. Fix formatting. :-S
[u/mdw/catacomb]
/
ec-test.c
diff --git
a/ec-test.c
b/ec-test.c
index
1307e32
..
de01ad8
100644
(file)
--- a/
ec-test.c
+++ b/
ec-test.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: ec-test.c,v 1.
4 2004/04/01 12:50:0
9 mdw Exp $
+ * $Id: ec-test.c,v 1.
5 2004/04/02 01:03:4
9 mdw Exp $
*
* Code for testing elliptic-curve stuff
*
*
* Code for testing elliptic-curve stuff
*
@@
-30,6
+30,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: ec-test.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: ec-test.c,v $
+ * Revision 1.5 2004/04/02 01:03:49 mdw
+ * Miscellaneous constification.
+ *
* Revision 1.4 2004/04/01 12:50:09 mdw
* Add cyclic group abstraction, with test code. Separate off exponentation
* functions for better static linking. Fix a buttload of bugs on the way.
* Revision 1.4 2004/04/01 12:50:09 mdw
* Add cyclic group abstraction, with test code. Separate off exponentation
* functions for better static linking. Fix a buttload of bugs on the way.
@@
-123,7
+126,7
@@
static int ecSAMEP(ec_curve *cc, ec_curve *dd)
return (ec_samep(c->real, d->real));
}
return (ec_samep(c->real, d->real));
}
-static ec_ops ecops = {
+static
const
ec_ops ecops = {
ecDESTROY, ecSAMEP, ecIN, ecOUT, ecFIX,
ecFIND, ecNEG, ecADD, ecSUB, ecDBL, ecCHECK
};
ecDESTROY, ecSAMEP, ecIN, ecOUT, ecFIX,
ecFIND, ecNEG, ecADD, ecSUB, ecDBL, ecCHECK
};
@@
-173,7
+176,7
@@
static void ecvdump(dstr *d, FILE *fp)
fprintf(fp, "%s", ec_name(v));
}
fprintf(fp, "%s", ec_name(v));
}
-test_type type_ecurve = { ecvcvt, ecvdump };
+
const
test_type type_ecurve = { ecvcvt, ecvdump };
static void eccvt(const char *p, dstr *d)
{
static void eccvt(const char *p, dstr *d)
{