Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
The portable C-implementation of Blake2b.
Synopsis
- name :: String
- description :: String
- type Prim = ChaCha20
- type Internals = ChaCha20Mem
- type BufferAlignment = 32
- type BufferPtr = AlignedBlockPtr BufferAlignment Prim
- additionalBlocks :: BlockCount ChaCha20
- c_chacha20_block :: BufferPtr -> BlockCount ChaCha20 -> Ptr (Key ChaCha20) -> Ptr (Nounce ChaCha20) -> Ptr (WordType ChaCha20) -> IO ()
- processBlocks :: BufferPtr -> BlockCount Prim -> Internals -> IO ()
- processLast :: BufferPtr -> BYTES Int -> Internals -> IO ()
- type RandomBufferSize = 16
- reseedAfter :: BlockCount Prim
- randomBlocks :: BufferPtr -> BlockCount Prim -> Internals -> IO ()
Documentation
description :: String Source #
type BufferAlignment = 32 Source #
type BufferPtr = AlignedBlockPtr BufferAlignment Prim Source #
additionalBlocks :: BlockCount ChaCha20 Source #
c_chacha20_block :: BufferPtr -> BlockCount ChaCha20 -> Ptr (Key ChaCha20) -> Ptr (Nounce ChaCha20) -> Ptr (WordType ChaCha20) -> IO () Source #
Chacha20 block transformation.
type RandomBufferSize = 16 Source #
The number of blocks of the cipher that is generated in one go encoded as a type level nat.
reseedAfter :: BlockCount Prim Source #
How many blocks of the primitive to generated before re-seeding.