19#ifndef CRYPTOPP_DARN_H
20#define CRYPTOPP_DARN_H
32 DARN_Err(
const std::string &operation)
33 :
Exception(OTHER_ERROR,
"DARN: " + operation +
" operation failed") {}
55 CRYPTOPP_STATIC_CONSTEXPR
const char* StaticAlgorithmName() {
return "DARN"; }
82 CRYPTOPP_UNUSED(input); CRYPTOPP_UNUSED(length);
Exception thrown when a DARN generator encounters a generator related error.
Hardware generated random numbers using DARN instruction.
DARN()
Construct a DARN generator.
virtual void DiscardBytes(size_t n)
Generate and discard n bytes.
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.
virtual void GenerateBlock(byte *output, size_t size)
Generate random array of bytes.
Base class for all exceptions thrown by the library.
Interface for random number generators.
Secure memory block with allocator and cleanup.
Abstract base classes that provide a uniform interface to this library.
Crypto++ library namespace.