Message verification using asymmetric cipher and message digest algorithm. This is an opposite of OpenSSL.EVP.Sign.
- data VerifyStatus
- verify :: PublicKey key => Digest -> String -> key -> String -> IO VerifyStatus
- verifyBS :: PublicKey key => Digest -> String -> key -> ByteString -> IO VerifyStatus
- verifyLBS :: PublicKey key => Digest -> String -> key -> ByteString -> IO VerifyStatus
Documentation
data VerifyStatus Source
represents a result of verification.
VerifyStatus
:: PublicKey key | |
=> Digest | message digest algorithm to use |
-> String | message signature |
-> key | public key to verify the signature |
-> String | input string to verify |
-> IO VerifyStatus | the result of verification |
verifies a signature and a stream of data. The string
must not contain any letters which aren't in the range of U+0000 -
U+00FF.
verify
:: PublicKey key | |
=> Digest | message digest algorithm to use |
-> String | message signature |
-> key | public key to verify the signature |
-> ByteString | input string to verify |
-> IO VerifyStatus | the result of verification |
verifies a signature and a chunk of data.
verifyBS
:: PublicKey key | |
=> Digest | message digest algorithm to use |
-> String | message signature |
-> key | public key to verify the signature |
-> ByteString | input string to verify |
-> IO VerifyStatus | the result of verification |
verifies a signature of a stream of data.
verifyLBS