fix miscompilation with ghc9

This commit is contained in:
Vincent Hanquez 2021-05-08 22:57:36 +08:00
parent b6981a4ea5
commit a6fbe0ed4c
No known key found for this signature in database
GPG Key ID: 4CA4A32D1A6F50E2

View File

@ -353,7 +353,7 @@ instance EllipticCurveEdDSA Curve_Edwards25519 where
scheduleSecret prx alg priv =
(decodeScalarNoErr prx clamped, B.dropView hashed 32)
where
hashed = digest alg ($ priv)
hashed = digest alg $ \update -> update priv
clamped :: Bytes
clamped = B.copyAndFreeze (B.takeView hashed 32) $ \p -> do