| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Codec.Encryption.OpenPGP.CFB
Documentation
decrypt :: SymmetricAlgorithm -> ByteString -> ByteString -> Either CipherError ByteString Source #
decryptPreservingNonce :: SymmetricAlgorithm -> ByteString -> ByteString -> Either CipherError (ByteString, ByteString) Source #
decryptNoNonce :: SymmetricAlgorithm -> IV -> ByteString -> ByteString -> Either CipherError ByteString Source #
decryptOpenPGPCfb :: SymmetricAlgorithm -> ByteString -> ByteString -> Either CipherError ByteString Source #
decryptOpenPGPCfbWithNonce :: SymmetricAlgorithm -> ByteString -> ByteString -> Either CipherError (ByteString, ByteString) Source #
data OpenPGPCFBMode Source #
Constructors
| OpenPGPCFBResync | |
| OpenPGPCFBNoResync |
Instances
| Show OpenPGPCFBMode Source # | |
Defined in Codec.Encryption.OpenPGP.CFB | |
| Eq OpenPGPCFBMode Source # | |
Defined in Codec.Encryption.OpenPGP.CFB Methods (==) :: OpenPGPCFBMode -> OpenPGPCFBMode -> Bool Source # (/=) :: OpenPGPCFBMode -> OpenPGPCFBMode -> Bool Source # | |
data OpenPGPCFBModeW (mode :: OpenPGPCFBMode) where Source #
Constructors
| OpenPGPCFBResyncW :: OpenPGPCFBModeW 'OpenPGPCFBResync | |
| OpenPGPCFBNoResyncW :: OpenPGPCFBModeW 'OpenPGPCFBNoResync |
encryptNoNonce :: SymmetricAlgorithm -> S2K -> IV -> ByteString -> ByteString -> Either CipherError ByteString Source #
Arguments
| :: forall (mode :: OpenPGPCFBMode). OpenPGPCFBModeW mode | |
| -> SymmetricAlgorithm | |
| -> IV | |
| -> ByteString | plaintext (with MDC trailer already appended) |
| -> ByteString | raw session key bytes |
| -> Either CipherError ByteString |