remove arithmetic on Curve25519. it's mathematically not possible
This commit is contained in:
parent
55f385a136
commit
f37d0b79ec
@ -209,10 +209,6 @@ instance EllipticCurve Curve_X25519 where
|
|||||||
encodePoint (X25519Point p) = B.convert p
|
encodePoint (X25519Point p) = B.convert p
|
||||||
decodePoint bs = X25519Point <$> X25519.publicKey bs
|
decodePoint bs = X25519Point <$> X25519.publicKey bs
|
||||||
|
|
||||||
instance EllipticCurveArith Curve_X25519 where
|
|
||||||
pointAdd = undefined
|
|
||||||
pointSmul = undefined
|
|
||||||
|
|
||||||
instance EllipticCurveDH Curve_X25519 where
|
instance EllipticCurveDH Curve_X25519 where
|
||||||
ecdh (X25519Scalar s) (X25519Point p) = SharedSecret $ convert secret
|
ecdh (X25519Scalar s) (X25519Point p) = SharedSecret $ convert secret
|
||||||
where
|
where
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user