From: Mark Wooding Date: Thu, 19 Oct 2017 23:35:57 +0000 (+0100) Subject: utils/curve25519.sage: Remove redundant coercion to field k. X-Git-Tag: 2.4.2~16 X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/commitdiff_plain/8bc5b22138b1de026eced992caf3692b4105d318 utils/curve25519.sage: Remove redundant coercion to field k. --- diff --git a/utils/curve25519.sage b/utils/curve25519.sage index f5375a79..6fa3cd34 100644 --- a/utils/curve25519.sage +++ b/utils/curve25519.sage @@ -267,7 +267,7 @@ assert x25519(x, Y[0]) == x25519(y, X[0]) == Z[0] ### Edwards curve parameters and conversion. a = k(-1) -d = k(-A0/(A0 + 1)) +d = -A0/(A0 + 1) def mont_to_ed(u, v): return sqrt(-A - 2)*u/v, (u - 1)/(u + 1)