Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class (HasSecretKey bc, HasCiphertext bc) => BlockCipher bc where Source #
Nothing
blockCipherEncrypt :: SecretKey bc -> ByteString -> Maybe (Ciphertext bc) Source #
default blockCipherEncrypt :: IncrementalBlockCipher bc => SecretKey bc -> ByteString -> Maybe (Ciphertext bc) Source #
blockCipherDecrypt :: SecretKey bc -> Ciphertext bc -> Maybe ByteString Source #
default blockCipherDecrypt :: IncrementalBlockCipher bc => SecretKey bc -> Ciphertext bc -> Maybe ByteString Source #
Instances
data family SecretKey alg Source #
Instances
data family Ciphertext alg Source #
Instances
data family LazyCiphertext alg Source #
Instances
blockCipherEncryptProxy :: BlockCipher bc => Proxy bc -> SecretKey bc -> ByteString -> Maybe (Ciphertext bc) Source #
blockCipherDecryptProxy :: BlockCipher bc => Proxy bc -> SecretKey bc -> Ciphertext bc -> Maybe ByteString Source #
blockCipherEncryptFile :: (BlockCipher bc, MonadIO m) => SecretKey bc -> FilePath -> m (Maybe (Ciphertext bc)) Source #
blockCipherDecryptFile :: (BlockCipher bc, MonadIO m) => SecretKey bc -> FilePath -> m (Maybe ByteString) Source #
class (BlockCipher bc, HasLazyCiphertext bc) => IncrementalBlockCipher bc where Source #
blockCipherEncryptLazy :: SecretKey bc -> ByteString -> Maybe (LazyCiphertext bc) Source #
blockCipherDecryptLazy :: SecretKey bc -> LazyCiphertext bc -> Maybe ByteString Source #
Instances
blockCipherEncryptFileLazy :: (IncrementalBlockCipher bc, MonadIO m) => SecretKey bc -> FilePath -> m (Maybe (LazyCiphertext bc)) Source #
blockCipherDecryptFileLazy :: (IncrementalBlockCipher bc, MonadIO m) => SecretKey bc -> FilePath -> m (Maybe ByteString) Source #
unsafeBlockCipherEncrypt :: BlockCipher bc => SecretKey bc -> ByteString -> Ciphertext bc Source #
unsafeBlockCipherDecrypt :: BlockCipher bc => SecretKey bc -> Ciphertext bc -> ByteString Source #
unsafeBlockCipherEncryptLazy :: IncrementalBlockCipher bc => SecretKey bc -> ByteString -> LazyCiphertext bc Source #
unsafeBlockCipherDecryptLazy :: IncrementalBlockCipher bc => SecretKey bc -> LazyCiphertext bc -> ByteString Source #
class BlockCipher bc => BlockCipher128 bc Source #
Instances
BlockCipher128 AES128 Source # | |
Defined in Botan.BlockCipher.AES | |
BlockCipher128 AES192 Source # | |
Defined in Botan.BlockCipher.AES | |
BlockCipher128 AES256 Source # | |
Defined in Botan.BlockCipher.AES | |
BlockCipher128 ARIA128 Source # | |
Defined in Botan.BlockCipher.ARIA | |
BlockCipher128 ARIA192 Source # | |
Defined in Botan.BlockCipher.ARIA | |
BlockCipher128 ARIA256 Source # | |
Defined in Botan.BlockCipher.ARIA | |
BlockCipher128 Camellia128 Source # | |
Defined in Botan.BlockCipher.Camellia | |
BlockCipher128 Camellia192 Source # | |
Defined in Botan.BlockCipher.Camellia | |
BlockCipher128 Camellia256 Source # | |
Defined in Botan.BlockCipher.Camellia | |
BlockCipher128 Noekeon Source # | |
Defined in Botan.BlockCipher.Noekeon | |
BlockCipher128 Serpent Source # | |
Defined in Botan.BlockCipher.Serpent | |
BlockCipher128 Twofish Source # | |
Defined in Botan.BlockCipher.Twofish |
class IncrementalBlockCipher bc => IncrementalBlockCipher128 bc Source #
Instances
IncrementalBlockCipher128 AES128 Source # | |
Defined in Botan.BlockCipher.AES | |
IncrementalBlockCipher128 AES192 Source # | |
Defined in Botan.BlockCipher.AES | |
IncrementalBlockCipher128 AES256 Source # | |
Defined in Botan.BlockCipher.AES | |
IncrementalBlockCipher128 ARIA128 Source # | |
Defined in Botan.BlockCipher.ARIA | |
IncrementalBlockCipher128 ARIA192 Source # | |
Defined in Botan.BlockCipher.ARIA | |
IncrementalBlockCipher128 ARIA256 Source # | |
Defined in Botan.BlockCipher.ARIA | |
IncrementalBlockCipher128 Camellia128 Source # | |
Defined in Botan.BlockCipher.Camellia | |
IncrementalBlockCipher128 Camellia192 Source # | |
Defined in Botan.BlockCipher.Camellia | |
IncrementalBlockCipher128 Camellia256 Source # | |
Defined in Botan.BlockCipher.Camellia | |
IncrementalBlockCipher128 Noekeon Source # | |
Defined in Botan.BlockCipher.Noekeon | |
IncrementalBlockCipher128 Serpent Source # | |
Defined in Botan.BlockCipher.Serpent | |
IncrementalBlockCipher128 Twofish Source # | |
Defined in Botan.BlockCipher.Twofish |