HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

ModuleHsOpenSSL-0.11.7.11Haskell2010

OpenSSL.EVP.Cipher

An interface to symmetric cipher algorithms.

Synopsis
  • 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.