Skip to content

Commit 8870c15

Browse files
committed
tools/atecc608a: update doc
The unsafeSignKeySlot has been in use to sign U2F things for a long time, so it is not reserved for future use as the doc says, but used today. We remove meniton of which are in use and which are not. securechip.h contains a list of actively used slots.
1 parent 38a7c68 commit 8870c15

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/securechip/securechip.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ typedef enum {
5858
SECURECHIP_SLOT_ATTESTATION = 5,
5959
SECURECHIP_SLOT_ECC_UNSAFE_SIGN = 6,
6060
SECURECHIP_SLOT_DATA0 = 9,
61+
// The other slots are currently not in use.
6162
} securechip_slot_t;
6263

6364
/**

tools/atecc608/main.go

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
)
2323

2424
const (
25-
// Currently in active use.
25+
// See securechip.h/securechip.c for how the slots are used.
2626

2727
// ioProtectionKeySlot holds the io protection key and is referenced by the kdf slots for output
2828
// encryption. Use needs to be authorized using authKeySlot for encrypted reads/writes.
@@ -47,15 +47,11 @@ const (
4747
// attestationKeySlot is an ECC slot. read/write disabled. Key internally generated at factory
4848
// setup and used to sign the device attestation host challenge.
4949
attestationKeySlot = 5
50-
)
51-
52-
const (
53-
// Reserved for future use.
5450

5551
// eccUnsafeSignKeySlot is a ECC slot. read disabled, encrypted write enabled. Can be used to
5652
// write any secret key in order to use the chip to create NIST P256 signatures. This is not
57-
// meant to use the SC for security, but might be used in the future as an alternative to adding
58-
// firmware code for signing with this curve.
53+
// meant to use the SC for security, but used as an alternative to adding firmware code for
54+
// signing with this curve.
5955
eccUnsafeSignKeySlot = 6
6056

6157
// internalECCKeySlot is an ECC slot. read/write disabled. Key internally generated using
@@ -67,7 +63,6 @@ const (
6763
dataKeySlot = 8
6864

6965
// All pubkey/certificate slots (9-15) have the same config as dataKeySlot.
70-
7166
)
7267

7368
// defaultConfigurationHex is a working start configuration. The final configuration is created by

0 commit comments

Comments
 (0)