From 5db9b7a1bc77dcaa922d0dd4db72b65a0467cc9c Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Sun, 24 May 2020 19:23:13 +0100 Subject: [PATCH] amicable.sage: fix minor bug in reporting whether bq is square (that did not affect the Tweedle curves). Signed-off-by: Daira Hopwood --- amicable.sage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amicable.sage b/amicable.sage index adcaa84..917503c 100644 --- a/amicable.sage +++ b/amicable.sage @@ -259,7 +259,7 @@ def real_worker(*args): output += "gcd(q-1, %d) = 1\n" % find_lowest_prime(q) output += "%d is %ssquare and %sprimitive in Fp\n" % (bp, "" if Mod(bp, p).is_square() else "non", "" if primp else "non") - output += "%d is %ssquare and %sprimitive in Fq\n" % (bq, "" if Mod(bp, q).is_square() else "non", "" if primq else "non") + output += "%d is %ssquare and %sprimitive in Fq\n" % (bq, "" if Mod(bq, q).is_square() else "non", "" if primq else "non") output += "Ep security = %.1f, embedding degree = (q-1)/%d\n" % (secp, embeddivp) output += "Eq security = %.1f, embedding degree = (p-1)/%d\n" % (secq, embeddivq)