X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/59b2b448afd977128c84bcea6b18adaf37d4be69..f46efa79cd2bb9adc81541f1218965f85a6b2eef:/ec-prime.c diff --git a/ec-prime.c b/ec-prime.c index 5c6297f..7712bbf 100644 --- a/ec-prime.c +++ b/ec-prime.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: ec-prime.c,v 1.6 2004/03/23 15:19:32 mdw Exp $ + * $Id: ec-prime.c,v 1.7 2004/03/27 00:04:46 mdw Exp $ * * Elliptic curves over prime fields * @@ -30,6 +30,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: ec-prime.c,v $ + * Revision 1.7 2004/03/27 00:04:46 mdw + * Implement efficient reduction for pleasant-looking primes. + * * Revision 1.6 2004/03/23 15:19:32 mdw * Test elliptic curves more thoroughly. * @@ -464,7 +467,7 @@ int main(int argc, char *argv[]) p = MP(6277101735386680763835789423207666416083908700390324961279); r = MP(6277101735386680763835789423176059013767194773182842284080); - f = field_prime(p); + f = field_niceprime(p); c = ec_primeproj(f, a, b); g.x = MP(0x188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012);