7 #ifndef CRYPTOPP_RDRAND_H 8 #define CRYPTOPP_RDRAND_H 42 :
Exception(OTHER_ERROR,
"RDRAND: " + operation +
" operation failed") {}
51 CRYPTOPP_STATIC_CONSTEXPR
const char* StaticAlgorithmName() {
return "RDRAND"; }
81 CRYPTOPP_UNUSED(input); CRYPTOPP_UNUSED(length);
105 CRYPTOPP_STATIC_CONSTEXPR
const char* StaticAlgorithmName() {
return "RDSEED"; }
135 CRYPTOPP_UNUSED(input); CRYPTOPP_UNUSED(length);
145 #endif // CRYPTOPP_RDRAND_H Base class for all exceptions thrown by the library.
virtual void DiscardBytes(size_t n)
Generate and discard n bytes.
Exception(ErrorType errorType, const std::string &s)
Construct a new Exception.
Hardware generated random numbers using RDRAND instruction.
virtual void IncorporateEntropy(const byte *input, size_t length)
Update RNG state with additional unpredictable values.
Abstract base classes that provide a uniform interface to this library.
Some other error occurred not belonging to other categories.
std::string AlgorithmProvider() const
Retrieve the provider of this algorithm.
Interface for random number generators.
virtual void IncorporateEntropy(const byte *input, size_t length)
Update RNG state with additional unpredictable values.
RDSEED()
Construct a RDSEED generator.
std::string AlgorithmProvider() const
Retrieve the provider of this algorithm.
Exception thrown when a RDRAND generator encounters a generator related error.
virtual void DiscardBytes(size_t n)
Generate and discard n bytes.
virtual void GenerateBlock(byte *output, size_t size)
Generate random array of bytes.
Hardware generated random numbers using RDSEED instruction.
virtual void GenerateBlock(byte *output, size_t size)
Generate random array of bytes.
Crypto++ library namespace.
Exception thrown when a RDSEED generator encounters a generator related error.
RDRAND()
Construct a RDRAND generator.