X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/0f00dc4c8eb47e67bc0f148c2dd109f73a451e0a..HEAD:/math/ec-info.c diff --git a/math/ec-info.c b/math/ec-info.c index 21d21fda..f57f92c0 100644 --- 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 - * %$p^d \not\equiv 1 \pmod{r}$%. + * %$p^d \not\equiv 1 \pmod{r}$%. * * 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; - * http://eprint.iacr.org/2006/415 + * http://eprint.iacr.org/2006/415 * * [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; - * http://www.secg.org/download/aid-385/sec1_final.pdf + * http://www.secg.org/download/aid-385/sec1_final.pdf */ /* --- @movcheck@ --- * @@ -494,14 +494,14 @@ const char *ec_getinfo(ec_info *ei, const char *p) /* --- @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. */ -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) &&