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

Internal

Description

Some internal functions exposed by raaz mainly for testing purposes. The functions here are pretty low level and/or expose to much of the system details. If you find your self needing some of the functions here, it should be treated as a bug in raaz. Please file an issue.

Synopsis

Documentation

fillSystemEntropy :: LengthUnit l => l -> Ptr Word8 -> IO (BYTES Int) Source #

WARNING Never use this function directly. Only exposed for testing the quality of system entropy. Fill the given input buffer with from the system entropy pool. This is provided only to test the quality of the system entropy function with systems like die-harder. The function is going to be less safe (due to the low level nature of the function) and slower (due to system call overheads).