Skip to content

Commit a90bc37

Browse files
committed
Merge remote-tracking branch 'benma/atecc-config'
2 parents ce6ef8a + 8870c15 commit a90bc37

File tree

7 files changed

+6
-10
lines changed

7 files changed

+6
-10
lines changed

.ci/ci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ make -j8 factory-setup
5050
make -j8 bootloader-semihosting
5151
make -j8 firmware-semihosting
5252

53-
(cd tools/atecc608a; go test ./...)
53+
(cd tools/atecc608; go test ./...)
5454

5555
# Don't generate graphics in CI
5656
(cd build; cmake -DDOC_GRAPHS=NO ..)

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ dockerdev:
127127
dockerrel:
128128
./scripts/dockerenv.sh release
129129
generate-atecc608-config:
130-
cd tools/atecc608a && go run main.go
130+
cd tools/atecc608 && go run main.go
131131
ci:
132132
./.ci/ci
133133
prepare-tidy: | build build-build

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
/**
File renamed without changes.
File renamed without changes.

tools/atecc608a/main.go renamed to 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)