projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Normal basis support (translates to poly basis internally). Rewrite
[u/mdw/catacomb]
/
ec.c
diff --git
a/ec.c
b/ec.c
index
13e9b84
..
9a929ca
100644
(file)
--- a/
ec.c
+++ b/
ec.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: ec.c,v 1.
8 2004/04/01 12:50:09
mdw Exp $
+ * $Id: ec.c,v 1.
9 2004/04/01 21:28:41
mdw Exp $
*
* Elliptic curve definitions
*
*
* Elliptic curve definitions
*
@@
-30,6
+30,11
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: ec.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: ec.c,v $
+ * Revision 1.9 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.8 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.8 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.
@@
-216,7
+221,7
@@
ec *ec_idfix(ec_curve *c, ec *d, const ec *p)
return (d);
}
return (d);
}
-/* --- @ec_projin@, @ec_projout@ --- *
+/* --- @ec_projin@, @ec_projout@
, @ec_projfix@
--- *
*
* Arguments: @ec_curve *c@ = pointer to an elliptic curve
* @ec *d@ = pointer to the destination
*
* Arguments: @ec_curve *c@ = pointer to an elliptic curve
* @ec *d@ = pointer to the destination
@@
-282,7
+287,7
@@
ec *ec_projfix(ec_curve *c, ec *d, const ec *p)
mp_drop(d->z);
d->z = MP_COPY(f->one);
}
mp_drop(d->z);
d->z = MP_COPY(f->one);
}
- return (d);
+ return (d);
}
/* --- @ec_stdsub@ --- *
}
/* --- @ec_stdsub@ --- *