Portabilitylinux only (NEEDS PORTING)
Stabilityexperimental
Maintainerrrnewton@gmail.com

Codec.Crypto.IntelAES

Description

This module provides an AES implementation that will test the CPU ID and use hardware acceleration where available, otherwise it will fall back to Dr. Brian Gladman's software implementation.

This module also exports a random number generator based on AES both using the System.Random.RandomGen interface and the Codec.Crypto.Random.

Synopsis

Documentation

mkAESGen :: Int -> CompoundAESRNG

Simple function to create a random number generator from an Int, analogous to System.Random.newStdGen. Only 128-bit encryption is provided for now.

type CompoundAESRNG = CRGtoRG CompoundCRG

A type representing an AES-based random number generator which will use AESNI instructions when available, and invoke the portable Gladman implementation when not.

testIntelAES :: IO ()