diff --git a/Crypto/PubKey/RSA/PSS.hs b/Crypto/PubKey/RSA/PSS.hs index 71102d6..8abd228 100644 --- a/Crypto/PubKey/RSA/PSS.hs +++ b/Crypto/PubKey/RSA/PSS.hs @@ -70,7 +70,6 @@ signDigestWithSalt :: HashAlgorithm hash -> Either Error ByteString signDigestWithSalt salt blinder params pk digest | k < hashLen + saltLen + 2 = Left InvalidParameters - | hashLen /= B.length mHash = Left InvalidParameters | otherwise = Right $ dp blinder pk em where k = private_size pk mHash = B.convert digest