HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

ModuleHsOpenSSL-0.11.7.10Haskell2010

OpenSSL.EVP.Seal

Asymmetric cipher decryption using encrypted symmetric key. This is an opposite of OpenSSL.EVP.Open.

  • 3 values
  • PackageHsOpenSSL-0.11.7.10
  • Exports3
  • LanguageHaskell2010
  • LicenceLicenseRef-PublicDomain
  • SourceSeal.hs
valueseal
  1. :: Cipher

    symmetric cipher algorithm to use

  2. -> [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.

  3. -> String

    input string to encrypt

  4. -> IO (String, [String], String)

    (encrypted string, list of encrypted asymmetric keys, IV)

#

Deprecated. Use sealBS or sealLBS instead.

seal lazilly encrypts a stream of data. The input string doesn't necessarily have to be finite.