Expand description
Construction of the 128-byte configuration zone blob.
Every field, every bit, every value here matches
docs/config-zone-layout.md section by section. If you change anything
in this file, update the doc and re-run the tests.
Constantsยง
- CHIP_
MODE ๐ - Value of byte 19, ChipMode.
- CONFIG_
ZONE_ ๐SIZE - Total size of the configuration zone.
- COUNT_
MATCH ๐ - Value of byte 18, CountMatch. The CountMatch feature is unused, the byte stays at zero.
- I2C_
ADDRESS_ ๐BYTE - I2C address byte stored at offset 16.
- KEY_
CFG_ ๐DATA_ GENERIC - KeyConfig for generic data slots.
- KEY_
CFG_ ๐ECC_ LOCKABLE_ OFF - KeyConfig for ECC P-256 slots with
Lockable = 0. - KEY_
CFG_ ๐ECC_ LOCKABLE_ ON - KeyConfig for ECC P-256 slots with
Lockable = 1. - LOCK_
CONFIG_ ๐UNLOCKED - Value placed at the LockConfig (byte 87) field.
0x55means the configuration zone is unlocked. The chip overwrites this with0x00when theLock(config)command is issued. - LOCK_
VALUE_ ๐UNLOCKED - Value placed at the LockValue (byte 86) field.
0x55means the data zone is unlocked. The chip overwrites this with0x00when theLock(data)command is issued. - RESERVE
D2 ๐ - Value of byte 17. Required to be zero by the ATECC608B reference.
- SLOT_
CFG_ ๐DATA_ IO_ KEY - SlotConfig for the I/O Protection master key (slot 8).
- SLOT_
CFG_ ๐DATA_ PIN_ PUK - SlotConfig for the PIN hash slot (slot 5) and the PUK hash slot (slot 6).
- SLOT_
CFG_ ๐ECC_ GENKEY_ ONLY - SlotConfig for ECC P-256 slots that allow GenKey but not PrivWrite.
- SLOT_
CFG_ ๐ECC_ GENKEY_ OR_ IMPORT - SlotConfig for ECC P-256 slots that allow both GenKey and encrypted PrivWrite import.
Functionsยง
- build ๐
- Build the full 128-byte configuration zone blob, including factory-area placeholders at bytes 0-15.
- key_
config_ ๐for - Return the KeyConfig value for a given slot index.
- slot_
config_ ๐for - Return the SlotConfig value for a given slot index.