[DSA] fix badly written constraint (found by QA)
This commit is contained in:
parent
9c67e3c133
commit
c1ed30b20e
@ -110,7 +110,7 @@ signWith k pk hashAlg msg
|
|||||||
s = (kInv * (hm + x * r)) `mod` q
|
s = (kInv * (hm + x * r)) `mod` q
|
||||||
|
|
||||||
-- | sign message using the private key.
|
-- | sign message using the private key.
|
||||||
sign :: HashAlgorithm hash => MonadRandom m => PrivateKey -> hash -> ByteString -> m Signature
|
sign :: (HashAlgorithm hash, MonadRandom m) => PrivateKey -> hash -> ByteString -> m Signature
|
||||||
sign pk hashAlg msg = do
|
sign pk hashAlg msg = do
|
||||||
k <- generateMax q
|
k <- generateMax q
|
||||||
case signWith k pk hashAlg msg of
|
case signWith k pk hashAlg msg of
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user