DeviceRandomSource class final
#include <crypto/device_random_source.hpp>
Platform device random source backed by HAL entropy implementation.
Base classes
- class IRandomSource
- Entropy source abstraction used for key generation.
Public functions
- auto fill(uint8_t* out, size_t size) -> bool override
- Fills output buffer with random bytes.
Function documentation
bool prf:: crypto:: DeviceRandomSource:: fill(uint8_t* out,
size_t size) override
Fills output buffer with random bytes.
| Parameters | |
|---|---|
| out | Destination buffer. |
| size | Number of bytes requested. |
| Returns | true on success. |