Expand description
Single-device offline profile (SPEC-v2 §7.13), TEST ONLY. Mirrors Go
v2reference/offline_device.go.
DeviceComponentTestOnly models the independent component the profile
requires on one device: an independently programmed secure element or
TPM-backed module with its own key. It holds the anchored complete-state
digest of the primary (DevicePrimaryTestOnly), which the primary
advances before every durable security-state change takes effect, and it
records, for every receipt-log entry, the entry hash and the
complete-state digest it acknowledged, advances monotonically, and signs
each acknowledgement. Nothing here is durable or independent; it exists
so the shared profile scenarios can exercise power loss, primary rollback
with and without a changed receipt prefix, digest mismatch, full storage,
clock regression, and offline recovery against exact semantics.
Structs§
- Device
Acknowledgement Test Only - One signed component record (Go
DeviceAcknowledgementTestOnly). - Device
Checkpoint Test Only - The primary’s view of the component (Go
DeviceCheckpointTestOnly). It implementsV2ReceiptCheckpoint: every acknowledgement it returns carries a component signature verified under the pinned key. - Device
Component Test Only - The independent monotonic authenticated component (Go
DeviceComponentTestOnly). Its clock is the device’s configured security-clock source. - Device
Uplink Test Only - The outbox upload after reconnection (Go
DeviceUplinkTestOnly). It uploads signed receipts only from the component-acknowledged prefix, in log order, once each. Upload is an outbox operation: it never releases a decision, changes a release record, or makes a withheld result actionable.
Enums§
- Device
Error Test Only - The failures of the device component and checkpoint (Go
ErrDevicePowerLoss,ErrDeviceStorageFull,ErrDeviceStateMismatch,ErrDeviceFrozen, andErrNotAcknowledged), plus a store or clock failure passed through. - Device
Power Loss - Where the next submission loses power (Go
DevicePowerLoss). - Device
Startup Status - The result of the primary’s startup comparison with the component head
(Go
DeviceStartupStatus).
Functions§
- verify_
device_ acknowledgement_ test_ only - Go
VerifyDeviceAcknowledgementTestOnly: check a record under the pinned component public key.