From f37d0b79ec6d536dcc9db630eb0083b0dc314f6f Mon Sep 17 00:00:00 2001 From: Vincent Hanquez Date: Thu, 1 Dec 2016 12:53:56 +0000 Subject: [PATCH] remove arithmetic on Curve25519. it's mathematically not possible --- Crypto/ECC.hs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Crypto/ECC.hs b/Crypto/ECC.hs index 45f48a4..cd3753a 100644 --- a/Crypto/ECC.hs +++ b/Crypto/ECC.hs @@ -209,10 +209,6 @@ instance EllipticCurve Curve_X25519 where encodePoint (X25519Point p) = B.convert p decodePoint bs = X25519Point <$> X25519.publicKey bs -instance EllipticCurveArith Curve_X25519 where - pointAdd = undefined - pointSmul = undefined - instance EllipticCurveDH Curve_X25519 where ecdh (X25519Scalar s) (X25519Point p) = SharedSecret $ convert secret where