/search.css" rel="stylesheet" type="text/css"/> /search.js">
#include <Random123/aes.h>
Public Types | |
typedef aesni1xm128i_ctr_t | ctr_type |
typedef aesni1xm128i_ukey_t | ukey_type |
typedef aesni1xm128i_key_t | key_type |
Public Member Functions | |
ctr_type | operator() (ctr_type ctr, key_type key) const |
Static Public Attributes | |
static const unsigned int | rounds =10 |
AESNI exports the member functions, typedefs and operator overloads required by a Counter Based RNGs (CBRNGs). class.
AESNI1xm128i uses the crypotgraphic AES round function, including the cryptographic key schedule.
In contrast to the other CBRNGs in the Random123 library, the AESNI1xm128i_R::key_type is opaque and is not identical to the AESNI1xm128i_R::ukey_type. Creating a key_type, using either the constructor or assignment operator, is significantly more time-consuming than running the bijection (hundreds of clock cycles vs. tens of clock cycles).
AESNI1xm128i is only available when the feature-test macro R123_USE_AES_NI is true, which should occur only when the compiler is configured to generate AES-NI instructions (or when defaults are overridden by compile-time, compiler-command-line options).
As of September 2011, the authors know of no statistical flaws with AESNI1xm128i. It would be an event of major cryptographic note if any such flaws were ever found.
|
static |