Cipher is an opaque object that represents an algorithm of
symmetric cipher.
ModuleHsOpenSSL-0.11.7.11Haskell2010
OpenSSL.EVP.Cipher
An interface to symmetric cipher algorithms.
Synopsis
- newtype Cipher
- value getCipherByName
- value getCipherNames
- data CryptoMode
- value cipher
- value cipherBS
- value cipherLBS
- value cipherStrictLBS
- PackageHsOpenSSL-0.11.7.11
- Exports8
- LanguageHaskell2010
- LicenceLicenseRef-PublicDomain
- SourceCipher.hs
getCipherByName name returns a symmetric cipher algorithm
whose name is name. If no algorithms are found, the result is
Nothing.
getCipherNames returns a list of name of symmetric cipher
algorithms.
cipher 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.
cipherBS :: Cipheralgorithm to use
-> ByteStringsymmetric key
-> ByteStringIV
-> CryptoModeoperation
-> ByteStringinput string to encrypt/decrypt
-> IO ByteStringthe result string
cipherBS strictly encrypts or decrypts a chunk of data.
cipherLBS :: Cipheralgorithm to use
-> ByteStringsymmetric key
-> ByteStringIV
-> CryptoModeoperation
-> ByteStringinput string to encrypt/decrypt
-> IO ByteStringthe result string
cipherLBS lazilly encrypts or decrypts a stream of data. The
input string doesn't necessarily have to be finite.
cipherStrictLBS :: CipherCipher
-> ByteStringKey
-> ByteStringIV
-> CryptoModeEncrypt/Decrypt
-> ByteStringInput
-> IO ByteString
Encrypt a lazy bytestring in a strict manner. Does not leak the keys.