RotatingNonceSource class final
Rotating management nonce source used by signed write authorization.
The nonce is generated from device randomness and rotated on a fixed uptime interval. It intentionally provides bounded freshness only, not single-use replay suppression.
Base classes
- class prf::control::IManagementNonceSource
- Rotating nonce source used for signed-write freshness.
Constructors, destructors, conversion operators
-
RotatingNonceSource(prf::
control:: IClock& clock) explicit
Public functions
- auto matches_current(std::span<const uint8_t> nonce) const -> bool override
- Returns true when provided nonce matches currently active nonce.
- auto prepare() -> bool
-
void set_random_source(prf::
crypto:: IRandomSource* random_source) -
auto snapshot(prf::
control:: NonceSnapshot* out_snapshot) const -> bool override - Returns current nonce snapshot.