HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

ModuleHsOpenSSL-0.11.7.11Haskell2010

OpenSSL.EVP.Cipher

An interface to symmetric cipher algorithms.

  • 2 types
  • 6 values
  • PackageHsOpenSSL-0.11.7.11
  • Exports8
  • LanguageHaskell2010
  • LicenceLicenseRef-PublicDomain
  • SourceCipher.hs
newtypenewtype Cipher
#

Cipher is an opaque object that represents an algorithm of symmetric cipher.

valuecipher
  1. :: Cipher

    algorithm to use

  2. -> String

    symmetric key

  3. -> String

    IV

  4. -> CryptoMode

    operation

  5. -> String

    An input string to encrypt/decrypt. Note that the string must not contain any letters which aren't in the range of U+0000 - U+00FF.

  6. -> IO String

    the result string

#

Deprecated. Use cipherBS, cipherLBS or cipherStrictLBS.

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