raaz-0.3.2: Fast and type safe cryptography.
Safe HaskellNone
LanguageHaskell2010

XChaCha20.Implementation

Synopsis

Documentation

type Prim = XChaCha20 Source #

data Internals Source #

Constructors

XChaCha20Mem 

Fields

Instances

Instances details
Memory Internals Source # 
Instance details

Defined in XChaCha20.Implementation

WriteAccessible Internals Source # 
Instance details

Defined in XChaCha20.Implementation

Methods

writeAccess :: Internals -> [Access]

afterWriteAdjustment :: Internals -> IO ()

Extractable Internals (BlockCount XChaCha20) Source # 
Instance details

Defined in XChaCha20.Implementation

Methods

extract :: Internals -> IO (BlockCount XChaCha20)

Initialisable Internals (BlockCount XChaCha20) Source # 
Instance details

Defined in XChaCha20.Implementation

Methods

initialise :: BlockCount XChaCha20 -> Internals -> IO ()

Initialisable Internals (Key XChaCha20) Source # 
Instance details

Defined in XChaCha20.Implementation

Methods

initialise :: Key XChaCha20 -> Internals -> IO ()

Initialisable Internals (Nounce XChaCha20) Source # 
Instance details

Defined in XChaCha20.Implementation

Methods

initialise :: Nounce XChaCha20 -> Internals -> IO ()

type BufferAlignment = BufferAlignment Source #

type BufferPtr = AlignedBlockPtr BufferAlignment Prim Source #

additionalBlocks :: BlockCount XChaCha20 Source #

processBlocks :: BufferPtr -> BlockCount Prim -> Internals -> IO () Source #

processLast :: BufferPtr -> BYTES Int -> Internals -> IO () Source #

Process the last bytes.