Crypto++
8.6
Free C++ class library of cryptographic schemes
|
Go to the documentation of this file.
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
RDRAND()
Construct a RDRAND generator.
std::string AlgorithmProvider() const
Retrieve the provider of this algorithm.
virtual void IncorporateEntropy(const byte *input, size_t length)
Update RNG state with additional unpredictable values.
Interface for random number generators.
Hardware generated random numbers using RDSEED instruction.
Base class for all exceptions thrown by the library.
Exception thrown when a RDRAND generator encounters a generator related error.
virtual void GenerateBlock(byte *output, size_t size)
Generate random array of bytes.
virtual void DiscardBytes(size_t n)
Generate and discard n bytes.
Exception thrown when a RDSEED generator encounters a generator related error.
std::string AlgorithmProvider() const
Retrieve the provider of this algorithm.
virtual void GenerateBlock(byte *output, size_t size)
Generate random array of bytes.
virtual void IncorporateEntropy(const byte *input, size_t length)
Update RNG state with additional unpredictable values.
Crypto++ library namespace.
Exception(ErrorType errorType, const std::string &s)
Construct a new Exception.
RDSEED()
Construct a RDSEED generator.
@ OTHER_ERROR
Some other error occurred not belonging to other categories.
Abstract base classes that provide a uniform interface to this library.
Hardware generated random numbers using RDRAND instruction.
virtual void DiscardBytes(size_t n)
Generate and discard n bytes.