Updated documentation
parent
4f7fee38d6
commit
bc29f1b5b8
13
rdrand.h
13
rdrand.h
|
|
@ -9,12 +9,11 @@
|
||||||
|
|
||||||
#include "cryptlib.h"
|
#include "cryptlib.h"
|
||||||
|
|
||||||
// This file (and friends) provides both RDRAND and RDSEED. They were added at
|
// This class file provides both RDRAND and RDSEED. They were added at
|
||||||
// Crypto++ 5.6.3. At compile time, it uses CRYPTOPP_BOOL_{X86|X32|X64}
|
// Crypto++ 5.6.3. At compile time, it uses CRYPTOPP_BOOL_{X86|X32|X64}
|
||||||
// to select an implementation or "throw NotImplemented". The class does not
|
// to select an implementation or "throw NotImplemented". At runtime the
|
||||||
// use CPUID to determine if RDRAND or RDSEED are available. If not available,
|
// constructor will throw RDRAND_Err or RDSEED_Err if a generator is
|
||||||
// then a SIGILL will result. Users of the classes should call HasRDRAND() or
|
// is not available.
|
||||||
// HasRDSEED() to determine if a generator is available.
|
|
||||||
// The original classes accepted a retry count. Retries were superflous for
|
// The original classes accepted a retry count. Retries were superflous for
|
||||||
// RDRAND, and RDSEED encountered a failure about 1 in 256 bytes depending
|
// RDRAND, and RDSEED encountered a failure about 1 in 256 bytes depending
|
||||||
// on the processor. Retries were removed at Crypto++ 6.0 because
|
// on the processor. Retries were removed at Crypto++ 6.0 because
|
||||||
|
|
@ -28,8 +27,8 @@
|
||||||
// during testing with Athlon X4 845. The Bulldozer v4 only performed at 1 MiB/s.
|
// during testing with Athlon X4 845. The Bulldozer v4 only performed at 1 MiB/s.
|
||||||
|
|
||||||
// Microsoft added RDRAND in August 2012, VS2012; RDSEED in October 2013, VS2013.
|
// Microsoft added RDRAND in August 2012, VS2012; RDSEED in October 2013, VS2013.
|
||||||
// GCC added RDRAND in December 2010, GCC 4.6. LLVM added RDRAND in July 2012, Clang 3.2.
|
// GCC added RDRAND in December 2010, GCC 4.6. LLVM added RDRAND in July 2012,
|
||||||
// Intel added RDRAND in September 2011, ICC 12.1.
|
// Clang 3.2. Intel added RDRAND in September 2011, ICC 12.1.
|
||||||
|
|
||||||
NAMESPACE_BEGIN(CryptoPP)
|
NAMESPACE_BEGIN(CryptoPP)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue