Expand description
Crypto business logic for the mini-HSM.
This crate sits between the low-level [atecc608b] driver and the USB
protocol layer. It owns the slot conventions, the PIN session state, and
the orchestration of the multi-step signing workflow (Nonce passthrough
followed by Sign external).
Re-exportsยง
pub use error::CryptoServiceError;pub use session::Clock;pub use session::Session;pub use session::SESSION_TIMEOUT_MS;
Modulesยง
- encrypted_
write ๐ - Host-side cryptography for the ATECCโs encrypted write flow.
- error
- Error type returned by the crypto service.
- pin ๐
- PIN / PUK hashing and
CheckMacMAC computation. - service ๐
- High-level crypto service exposed to the USB layer.
- session
- PIN session bookkeeping.
- slots ๐
- Slot-mapping convention used by this firmware.
Structsยง
- Crypto
Service - High-level crypto orchestrator.