Safe Haskell | None |
---|
Message signing using asymmetric cipher and message digest algorithm. This is an opposite of OpenSSL.EVP.Verify.
- sign :: KeyPair key => Digest -> key -> String -> IO String
- signBS :: KeyPair key => Digest -> key -> ByteString -> IO ByteString
- signLBS :: KeyPair key => Digest -> key -> ByteString -> IO ByteString
Documentation
:: KeyPair key | |
=> Digest | message digest algorithm to use |
-> key | private key to sign the message digest |
-> String | input string |
-> IO String | the result signature |
generates a signature from a stream of data. The string
must not contain any letters which aren't in the range of U+0000 -
U+00FF.
sign
:: KeyPair key | |
=> Digest | message digest algorithm to use |
-> key | private key to sign the message digest |
-> ByteString | input string |
-> IO ByteString | the result signature |
generates a signature from a chunk of data.
signBS
:: KeyPair key | |
=> Digest | message digest algorithm to use |
-> key | private key to sign the message digest |
-> ByteString | input string |
-> IO ByteString | the result signature |
generates a signature from a stream of data.
signLBS