cprng-aes-0.5.1: Crypto Pseudo Random Number Generator using AES in counter mode.

Portabilityunknown
Stabilitystable
MaintainerVincent Hanquez <vincent@snarc.org>
Safe HaskellNone

Crypto.Random.AESCtr

Description

this CPRNG is an AES based counter system.

the internal size of fields are: 16 bytes IV, 16 bytes counter, 32 bytes key

each block are generated the following way: aes (IV xor counter) -> 16 bytes output

Synopsis

Documentation

make :: EntropyPool -> AESRNGSource

make an AES RNG from an EntropyPool.

use makeSystem to not have to deal with the entropy pool.

makeSystem :: IO AESRNGSource

Initialize a new AES RNG using the system entropy. {--}