projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use official names for ANSI curves. Add (names for) the X9.63 curves.
[u/mdw/catacomb]
/
f-binpoly.c
diff --git
a/f-binpoly.c
b/f-binpoly.c
index
4282ad4
..
8fae42a
100644
(file)
--- a/
f-binpoly.c
+++ b/
f-binpoly.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id
: f-binpoly.c,v 1.9 2004/04/08 01:36:15 mdw Exp
$
+ * $Id$
*
* Binary fields with polynomial basis representation
*
*
* Binary fields with polynomial basis representation
*
@@
-52,7
+52,7
@@
static void fdestroy(field *ff)
static mp *frand(field *f, mp *d, grand *r)
{ return (mprand(d, f->nbits, r, 0)); }
static mp *frand(field *f, mp *d, grand *r)
{ return (mprand(d, f->nbits, r, 0)); }
-static int fzerop(field *ff, mp *x) { return (
!MP_LEN
(x)); }
+static int fzerop(field *ff, mp *x) { return (
MP_ZEROP
(x)); }
static mp *fadd(field *ff, mp *d, mp *x, mp *y) { return (gf_add(d, x, y)); }
static mp *fadd(field *ff, mp *d, mp *x, mp *y) { return (gf_add(d, x, y)); }