|
Botan 3.14.1
Crypto and TLS for C&
|
Functions | |
| bool | available () |
| CPUID::Feature | feature () |
| std::optional< uint64_t > | read () |
| std::optional< uint64_t > | read_once () |
| BOTAN_TEST_API bool Botan::HWRNG::available | ( | ) |
Return true if the current CPU supports the hardware RNG instruction
Definition at line 11 of file hwrng.cpp.
References feature(), and Botan::CPUID::has().
Referenced by Botan::Processor_RNG::available().
| CPUID::Feature Botan::HWRNG::feature | ( | ) |
Return the CPUID feature which indicates the hardware RNG is available
Definition at line 19 of file hwrng_aarch64.cpp.
References Botan::CPUFeature::RNG.
Referenced by available(), and Botan::Processor_RNG::name().
| BOTAN_TEST_API std::optional< uint64_t > Botan::HWRNG::read | ( | ) |
Read 64 bits from the hardware RNG
Returns nullopt if the instruction repeatedly failed to produce an output, which indicates a hardware fault.
Must only be called if available() returns true
Definition at line 15 of file hwrng.cpp.
References read_once().
| std::optional< uint64_t > Botan::HWRNG::read_once | ( | ) |
Make a single attempt to read 64 bits from the hardware RNG
Returns nullopt if the instruction indicated failure
Must only be called if available() returns true
Definition at line 23 of file hwrng_aarch64.cpp.
Referenced by read().