commit 7ec51583b56223898f63591c2dab718c3cd62b16
parent 9bf3be8f1fdf42e5258c17207ff475896274675d
Author: Jared Tobin <jared@jtobin.io>
Date: Sun, 26 Apr 2026 07:05:13 -0230
lib: remove vartime Eq instances for Key, Nonce
There's no good reason to expose them, and they weren't used anywhere
anyway.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/Crypto/Cipher/ChaCha20.hs b/lib/Crypto/Cipher/ChaCha20.hs
@@ -151,7 +151,7 @@ data Key = Key {
, k6 :: {-# UNPACK #-} !Word32
, k7 :: {-# UNPACK #-} !Word32
}
- deriving (Eq, Show)
+ deriving Show
-- parse strict 256-bit bytestring (length unchecked) to key
_parse_key :: BS.ByteString -> Key
@@ -173,7 +173,7 @@ data Nonce = Nonce {
, n1 :: {-# UNPACK #-} !Word32
, n2 :: {-# UNPACK #-} !Word32
}
- deriving (Eq, Show)
+ deriving Show
-- parse strict 96-bit bytestring (length unchecked) to nonce
_parse_nonce :: BS.ByteString -> Nonce