Expand description
PIN session bookkeeping.
A PIN session is opened by a successful crate::CryptoService::verify_pin
call and expires after SESSION_TIMEOUT_MS of inactivity. Each
authenticated operation (signing, key generation) refreshes the session.
The session uses a Clock abstraction so that tests can drive time
deterministically. In firmware the implementation is backed by
embassy_time::Instant. In tests it is a hand-rolled Cell<u64>.
Structs§
- Session
- PIN session state.
Constants§
- SESSION_
TIMEOUT_ MS - Session inactivity timeout in milliseconds.
Traits§
- Clock
- Source of monotonic time used by the session.