HsOpenSSL-0.3: (Part of) OpenSSL binding for HaskellContentsIndex
OpenSSL.EVP.Seal
Description
Asymmetric cipher decryption using encrypted symmetric key. This is an opposite of OpenSSL.EVP.Open.
Synopsis
seal :: Cipher -> [PKey] -> String -> IO (String, [String], String)
sealBS :: Cipher -> [PKey] -> ByteString -> IO (ByteString, [String], String)
sealLBS :: Cipher -> [PKey] -> LazyByteString -> IO (LazyByteString, [String], String)
Documentation
seal
:: Ciphersymmetric cipher algorithm to use
-> [PKey]A list of public keys to encrypt a symmetric key. At least one public key must be supplied. If two or more keys are given, the symmetric key are encrypted by each public keys so that any of the corresponding private keys can decrypt the message.
-> Stringinput string to encrypt
-> IO (String, [String], String)(encrypted string, list of encrypted asymmetric keys, IV)
seal lazilly encrypts a stream of data. The input string doesn't necessarily have to be finite.
sealBS
:: Ciphersymmetric cipher algorithm to use
-> [PKey]list of public keys to encrypt a symmetric key
-> ByteStringinput string to encrypt
-> IO (ByteString, [String], String)(encrypted string, list of encrypted asymmetric keys, IV)
sealBS strictly encrypts a chunk of data.
sealLBS
:: Ciphersymmetric cipher algorithm to use
-> [PKey]list of public keys to encrypt a symmetric key
-> LazyByteStringinput string to encrypt
-> IO (LazyByteString, [String], String)(encrypted string, list of encrypted asymmetric keys, IV)
sealLBS lazilly encrypts a stream of data. The input string doesn't necessarily have to be finite.
Produced by Haddock version 0.8