remove redundant condition test on `hashLen /= B.length mHash`
This commit is contained in:
parent
4270f00277
commit
a8902fe119
@ -70,7 +70,6 @@ signDigestWithSalt :: HashAlgorithm hash
|
|||||||
-> Either Error ByteString
|
-> Either Error ByteString
|
||||||
signDigestWithSalt salt blinder params pk digest
|
signDigestWithSalt salt blinder params pk digest
|
||||||
| k < hashLen + saltLen + 2 = Left InvalidParameters
|
| k < hashLen + saltLen + 2 = Left InvalidParameters
|
||||||
| hashLen /= B.length mHash = Left InvalidParameters
|
|
||||||
| otherwise = Right $ dp blinder pk em
|
| otherwise = Right $ dp blinder pk em
|
||||||
where k = private_size pk
|
where k = private_size pk
|
||||||
mHash = B.convert digest
|
mHash = B.convert digest
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user