Skip to content

Commit 3a7353e

Browse files
author
Andrzej Kurek
committed
Use atecc608a_key_slot_device instead of a hardcoded 0
1 parent 36d3a58 commit 3a7353e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ int main(void)
147147

148148
atecc608a_print_serial_number();
149149
atecc608a_print_config_zone();
150-
ASSERT_SUCCESS_PSA(atecc608a_generate_key(0, pubkey, pubkey_size));
150+
ASSERT_SUCCESS_PSA(atecc608a_generate_key(atecc608a_key_slot_device, pubkey, pubkey_size));
151151
atcab_printbin_label("pubKey generated: ", pubkey, ATCA_PUB_KEY_SIZE);
152152

153153
ASSERT_SUCCESS_PSA(atecc608a_hash_sha256(hash_input1,

0 commit comments

Comments
 (0)