HsOpenSSL-0.3: (Part of) OpenSSL binding for HaskellContentsIndex
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 :: Digest -> String -> PKey -> String -> IO VerifyStatus
verifyBS :: Digest -> String -> PKey -> ByteString -> IO VerifyStatus
verifyLBS :: Digest -> String -> PKey -> LazyByteString -> IO VerifyStatus
Documentation
data VerifyStatus
VerifyStatus represents a result of verification.
Constructors
VerifySuccess
VerifyFailure
show/hide Instances
verify
:: Digestmessage digest algorithm to use
-> Stringmessage signature
-> PKeypublic 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.
verifyBS
:: Digestmessage digest algorithm to use
-> Stringmessage signature
-> PKeypublic key to verify the signature
-> ByteStringinput string to verify
-> IO VerifyStatusthe result of verification
verifyBS verifies a signature and a chunk of data.
verifyLBS
:: Digestmessage digest algorithm to use
-> Stringmessage signature
-> PKeypublic key to verify the signature
-> LazyByteStringinput string to verify
-> IO VerifyStatusthe result of verification
verifyLBS verifies a signature of a stream of data.
Produced by Haddock version 0.8