HsOpenSSL-0.6.1: (Incomplete) OpenSSL binding for HaskellSource codeContentsIndex
OpenSSL.EVP.Verify
Description
Message verification using asymmetric cipher and message digest algorithm. This is an opposite of OpenSSL.EVP.Sign.
Synopsis
data VerifyStatus
= VerifySuccess
| VerifyFailure
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
VerifyStatus represents a result of verification.
Constructors
VerifySuccess
VerifyFailure
show/hide Instances
verifySource
:: PublicKey key
=> Digestmessage digest algorithm to use
-> Stringmessage signature
-> keypublic key to verify the signature
-> Stringinput string to verify
-> IO VerifyStatusthe result of verification
verify 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.
verifyBSSource
:: PublicKey key
=> Digestmessage digest algorithm to use
-> Stringmessage signature
-> keypublic key to verify the signature
-> ByteStringinput string to verify
-> IO VerifyStatusthe result of verification
verifyBS verifies a signature and a chunk of data.
verifyLBSSource
:: PublicKey key
=> Digestmessage digest algorithm to use
-> Stringmessage signature
-> keypublic key to verify the signature
-> ByteStringinput string to verify
-> IO VerifyStatusthe result of verification
verifyLBS verifies a signature of a stream of data.
Produced by Haddock version 2.4.2