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.Cipher

Description

A block cipher by itself, is only able to securely encrypt a single data block. To be able to securely encrypt data of arbitrary length, a mode of operation applies the block cipher’s single block operation repeatedly to encrypt an entire message.

Synopsis

Thing

 

Usage

 

Idiomatic interface

Cipher data type

data Cipher Source #

Instances

Instances details
Show Cipher Source # 
Instance details

Defined in Botan.Cipher

Eq Cipher Source # 
Instance details

Defined in Botan.Cipher

Methods

(==) :: Cipher -> Cipher -> Bool #

(/=) :: Cipher -> Cipher -> Bool #

Ord Cipher Source # 
Instance details

Defined in Botan.Cipher

AEAD data type

newtype AEAD Source #

Constructors

MkAEAD 

Fields

Instances

Instances details
Show AEAD Source # 
Instance details

Defined in Botan.Cipher

Methods

showsPrec :: Int -> AEAD -> ShowS #

show :: AEAD -> String #

showList :: [AEAD] -> ShowS #

Eq AEAD Source # 
Instance details

Defined in Botan.Cipher

Methods

(==) :: AEAD -> AEAD -> Bool #

(/=) :: AEAD -> AEAD -> Bool #

Ord AEAD Source # 
Instance details

Defined in Botan.Cipher

Methods

compare :: AEAD -> AEAD -> Ordering #

(<) :: AEAD -> AEAD -> Bool #

(<=) :: AEAD -> AEAD -> Bool #

(>) :: AEAD -> AEAD -> Bool #

(>=) :: AEAD -> AEAD -> Bool #

max :: AEAD -> AEAD -> AEAD #

min :: AEAD -> AEAD -> AEAD #

Enumerations

Associated types

type CipherKey = CipherKey Source #

Accessors

cipherName :: Cipher -> CipherName Source #

cipherKeySpec :: Cipher -> CipherKeySpec Source #

Idiomatic algorithm

Mutable interface

Tagged mutable context

Destructor

Associated types

Initializers

Accessors

getCipherKeySpec :: MonadIO m => MutableCipher -> m CipherKeySpec Source #

getCipherOutputLength :: MonadIO m => MutableCipher -> Int -> m Int Source #

Warning: Needs to be confirmed accurate, use getCipherEstimateOutputLength

Accessory functions

Mutable algorithm

Algorithm references