~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
symm/poly1305.c, etc.: Convert the Monte-Carlo tests to incremental form.
[catacomb]
/
math
/
ec-info.c
diff --git
a/math/ec-info.c
b/math/ec-info.c
index
21d21fd
..
f57f92c
100644
(file)
--- a/
math/ec-info.c
+++ b/
math/ec-info.c
@@
-90,7
+90,7
@@
*
* 2. For each divisor %$d$% of %$r - 1$% less than %$B$% (which we can
* construct using this factorization), make sure that
*
* 2. For each divisor %$d$% of %$r - 1$% less than %$B$% (which we can
* construct using this factorization), make sure that
- *
%$p^d \not\equiv 1 \pmod{r}$%.
+ * %$p^d \not\equiv 1 \pmod{r}$%.
*
* This takes a little while but not ever-so long.
*
*
* This takes a little while but not ever-so long.
*
@@
-112,13
+112,13
@@
* References:
*
* [Hitt] L. Hitt, On an improved definition of embedding degree;
* References:
*
* [Hitt] L. Hitt, On an improved definition of embedding degree;
- *
http://eprint.iacr.org/2006/415
+ * http://eprint.iacr.org/2006/415
*
* [P1363] IEEE 1363-2000: Standard Specifications for Public Key
*
* [P1363] IEEE 1363-2000: Standard Specifications for Public Key
- *
Cryptography; http://grouper.ieee.org/groups/1363/P1363/index.html
+ * Cryptography; http://grouper.ieee.org/groups/1363/P1363/index.html
*
* [SEC1] SEC 1: Elliptic Curve Cryptography;
*
* [SEC1] SEC 1: Elliptic Curve Cryptography;
- *
http://www.secg.org/download/aid-385/sec1_final.pdf
+ * http://www.secg.org/download/aid-385/sec1_final.pdf
*/
/* --- @movcheck@ --- *
*/
/* --- @movcheck@ --- *
@@
-494,14
+494,14
@@
const char *ec_getinfo(ec_info *ei, const char *p)
/* --- @ec_sameinfop@ --- *
*
/* --- @ec_sameinfop@ --- *
*
- * Arguments: @ec_info *ei, *ej@ = two elliptic curve parameter sets
+ * Arguments: @
const
ec_info *ei, *ej@ = two elliptic curve parameter sets
*
* Returns: Nonzero if the curves are identical (not just isomorphic).
*
* Use: Checks for sameness of curve parameters.
*/
*
* Returns: Nonzero if the curves are identical (not just isomorphic).
*
* Use: Checks for sameness of curve parameters.
*/
-int ec_sameinfop(
ec_info *ei,
ec_info *ej)
+int ec_sameinfop(
const ec_info *ei, const
ec_info *ej)
{
return (ec_samep(ei->c, ej->c) &&
MP_EQ(ei->r, ej->r) && MP_EQ(ei->h, ej->h) &&
{
return (ec_samep(ei->c, ej->c) &&
MP_EQ(ei->r, ej->r) && MP_EQ(ei->h, ej->h) &&