| Safe Haskell | Safe-Inferred | 
|---|---|
| Language | Haskell2010 | 
OpenSSL.EVP.Seal
Description
Asymmetric cipher decryption using encrypted symmetric key. This is an opposite of OpenSSL.EVP.Open.
Synopsis
- seal :: Cipher -> [SomePublicKey] -> String -> IO (String, [String], String)
- sealBS :: Cipher -> [SomePublicKey] -> ByteString -> IO (ByteString, [ByteString], ByteString)
- sealLBS :: Cipher -> [SomePublicKey] -> ByteString -> IO (ByteString, [ByteString], ByteString)
Documentation
Arguments
| :: Cipher | symmetric cipher algorithm to use | 
| -> [SomePublicKey] | 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. | 
| -> String | input string to encrypt | 
| -> IO (String, [String], String) | (encrypted string, list of encrypted asymmetric keys, IV) | 
Deprecated: Use sealBS or sealLBS instead.
seal
Arguments
| :: Cipher | symmetric cipher algorithm to use | 
| -> [SomePublicKey] | list of public keys to encrypt a symmetric key | 
| -> ByteString | input string to encrypt | 
| -> IO (ByteString, [ByteString], ByteString) | (encrypted string, list of encrypted asymmetric keys, IV) | 
sealBS
Arguments
| :: Cipher | symmetric cipher algorithm to use | 
| -> [SomePublicKey] | list of public keys to encrypt a symmetric key | 
| -> ByteString | input string to encrypt | 
| -> IO (ByteString, [ByteString], ByteString) | (encrypted string, list of encrypted asymmetric keys, IV) | 
sealLBS