projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix overrun in @mpx_lsr@.
[u/mdw/catacomb]
/
ec-info.c
diff --git
a/ec-info.c
b/ec-info.c
index
a99cba5
..
bcc0ab8
100644
(file)
--- a/
ec-info.c
+++ b/
ec-info.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: ec-info.c,v 1.
2 2004/04/01 12:50:09
mdw Exp $
+ * $Id: ec-info.c,v 1.
3 2004/04/01 21:28:41
mdw Exp $
*
* Elliptic curve information management
*
*
* Elliptic curve information management
*
@@
-30,6
+30,11
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: ec-info.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: ec-info.c,v $
+ * Revision 1.3 2004/04/01 21:28:41 mdw
+ * Normal basis support (translates to poly basis internally). Rewrite
+ * EC and prime group table generators in awk, so that they can reuse data
+ * for repeated constants.
+ *
* Revision 1.2 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.2 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.
@@
-202,6
+207,10
@@
static void getinfo(ec_info *ei, ecdata *ed)
f = field_binpoly(&ed->p);
ei->c = ec_binproj(f, &ed->a, &ed->b);
break;
f = field_binpoly(&ed->p);
ei->c = ec_binproj(f, &ed->a, &ed->b);
break;
+ case FTAG_BINNORM:
+ f = field_binnorm(&ed->p, &ed->beta);
+ ei->c = ec_binproj(f, &ed->a, &ed->b);
+ break;
default:
abort();
}
default:
abort();
}