IRandomSource class
#include <crypto/random_source.hpp>
Entropy source abstraction used for key generation.
The implementation may read from hardware RNG, TRNG, or deterministic test vectors.
Derived classes
- class DeviceRandomSource final
- Platform device random source backed by HAL entropy implementation.
Constructors, destructors, conversion operators
- ~IRandomSource() defaulted virtual
Public functions
- auto fill(uint8_t* out, size_t size) -> bool pure virtual
- Fills output buffer with random bytes.
Function documentation
bool prf:: crypto:: IRandomSource:: fill(uint8_t* out,
size_t size) pure virtual
Fills output buffer with random bytes.
| Parameters | |
|---|---|
| out | Destination buffer. |
| size | Number of bytes requested. |
| Returns | true on success. |