5.1.2.2 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-TFLXTLS device, the keys stored in Slots 0-4, 11
and 13-15 are ECC keys that can be checked with the KeyValid
mode of the Info
command.
Opcode |
Mode |
Param |
Data | Description |
---|---|---|---|---|
0x30 | 0x01 | 0x00 0[Slot] | — | Returns whether the slot contains a valid ECC private or public key. |
Name |
Size | Description |
---|---|---|
Response | 0x00 00 00 00 | ECC key is invalid |
0x00 00 00 01 | ECC key is valid |