botan-0.0.1.0: High-level Botan bindings
Copyright(c) Leo D 2023
LicenseBSD-3-Clause
Maintainerleo@apotheca.io
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Botan.BlockCipher

Description

This is a ‘raw’ interface to ECB mode block ciphers. Most applications want the higher level cipher API which provides authenticated encryption. This API exists as an escape hatch for applications which need to implement custom primitives using a PRP.

Synopsis

Block ciphers

 

Usage

 

Idiomatic interface

Data type

Enumerations

Associated types

Convenience

Accessors

blockCipherName :: BlockCipher -> BlockCipherName Source #

Idiomatic algorithm

Mutable interface

Tagged mutable context

Destructor

Initializers

Accessors

getBlockCipherName Source #

Arguments

:: MonadIO m 
=> MutableBlockCipher

The cipher object

-> m BlockCipherName

The cipher name

getBlockCipherBlockSize Source #

Arguments

:: MonadIO m 
=> MutableBlockCipher

The cipher object

-> m Int 

Accessory functions

Mutable algorithm