Expand description
RNG based on AES in CTR mode.
This implementation is based on the implementation given in the
scuttlebutt
crate. Instead of using an own AES implementation, AesRng
uses
the aes crate.
On platforms wwith hardware accelerated AES instructions, the AesRng
can
generate multiple GiB of random data per second. Make sure to compile with
the aes
target feature enabled to have optimal performance without runtime
detection of the feature.
Structsยง
- AesRng
- This uses AES in a counter-mode to implement a PRG. TODO: Citation for why/when this is secure.
- AesRng
Core - The core of
AesRng
, used withBlockRng
.