HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

ModuleHsOpenSSL-0.11.7.10Haskell2010

OpenSSL.EVP.Cipher

An interface to symmetric cipher algorithms.

  • 2 types
  • 6 values
  • PackageHsOpenSSL-0.11.7.10
  • 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.