Skip to main content

Crate config_generator

Crate config_generator 

Source
Expand description

Generator for the ATECC608B configuration zone blob used by the mini-HSM.

Produces a 128-byte binary file matching the specification documented in docs/config-zone-layout.md. The bytes 0 to 15 (factory area) are placeholders. They are not transmitted to the chip during the Write command. Bytes 16 to 127 are the writable portion, which is what the firmware writes to the chip during provisioning.

See the documentation for the bit-by-bit justification of every value.

Modulesยง

annotate ๐Ÿ”’
Human-readable rendering of the configuration zone blob.
blob ๐Ÿ”’
Construction of the 128-byte configuration zone blob.
counter_encoding ๐Ÿ”’
Encoding of the 8-byte initial value for the ATECC608B monotonic counters (Counter0 at bytes 52..60 of the config zone, Counter1 at bytes 60..68).
crc ๐Ÿ”’
CRC-16 implementation used to compute the lock-confirmation hash of the writable portion of the configuration zone.

Structsยง

Cli ๐Ÿ”’

Constantsยง

EXPECTED_CRC ๐Ÿ”’
Expected CRC-16 of the writable portion (bytes 16 to 127) of the generated blob. This is an internal sanity check: if blob::build() ever returns a different value, the generator has drifted from the specification in docs/config-zone-layout.md.

Functionsยง

main ๐Ÿ”’