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

ChaCha20.Random.CPortable

Synopsis

Documentation

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.

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

type BufferPtr = AlignedBlockPtr BufferAlignment Prim Source #

type Internals = ChaCha20Mem Source #

type Prim = ChaCha20 Source #

additionalBlocks :: BlockCount ChaCha20 Source #