diff options
Diffstat (limited to 'src/Data/HMAC.hs')
-rw-r--r-- | src/Data/HMAC.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Data/HMAC.hs b/src/Data/HMAC.hs index 1850103..df7e8e6 100644 --- a/src/Data/HMAC.hs +++ b/src/Data/HMAC.hs @@ -41,7 +41,7 @@ instance Eq HMAC where unsafeLocalState $ ByteString.unsafeUseAsCStringLen a $ \(a', size) -> ByteString.unsafeUseAsCStringLen b $ \(b', _) -> - cryptoMemcmp a' b' size + (==0) <$> cryptoMemcmp a' b' size instance Show HMAC where show (HMAC m) = show (Digest m) |