Info - KeyValid

The KeyValid mode is useful to determine if an ECC private or public key that is stored is a valid ECC key. If the PublicKey cannot be output, then the info returned by this command is not useful. If the KeyType is not ECC, the output of this command is also not useful.

For the ATECC608A-TNGTLS device, the keys stored in Slots 1-4 are ECC keys that can be checked with the KeyValid mode of the Info command.

Table 1. Input Parameters - Info KeyValid

Opcode
(1 Byte)

Mode
(1 Byte)

Param
(2 Bytes)

Data
(0 Bytes)

Description
0x30 0x01 0x00 0[Slot] Returns whether the slot contains a valid ECC private or public key.
Table 2. Output Response - Info KeyValid
Name

Size
(4 Bytes)

Description
Response 0x00 00 00 00 ECC key is invalid
0x00 00 00 01 ECC key is valid