The Verify
command may be used to verify a message
generated externally to the ATECC608A-TFLXTLS with a
public key that is passed to the command. The output of the command will either be a
code indicating success, failure or error or a 32-byte MAC. Prior to this command
being run, the message should be written using the Nonce
command in
Fixed mode to either TempKey or the Message Digest Buffer. In this mode, the device
merely accelerates the public key computation and returns a boolean result.
Nonce
command in Fixed mode.Verify
command. Include the Mode, KeyID, which specifies the P256 ECC Curve, the
64-byte signature and the 64-byte external public key.
Opcode |
Mode |
Key ID |
Data Field (128 Bytes) | Comment | |
---|---|---|---|---|---|
Signature |
Public Key |
||||
0x45 | 0x02 | 0x00 04 |
R value |
X value |
Message stored in TempKey |
0x22 | 0x00 04 |
R value |
X value |
Message stored in Message Digest Buffer | |
0xA2 | 0x00 04 |
R value |
X value |
|
|
0x82 | 0x00 04 |
R value |
X value |
|
Name | Mode | Size | Response |
---|---|---|---|
Response | 0x02 or 0x22 | 1 byte |
|
0x82 or 0xA2 | 1 byte or 32 bytes |
|
Size |
Message in TempKey | Message in Message Digest Buffer |
---|---|---|
32 | Contents of the IO protection key | Contents of the IO protection key |
32 | Message stored in TempKey | Message stored in the first 32 bytes of the Message Digest Buffer |
32 | System Nonce stored in the first 32 bytes of the Message Digest Buffer | System Nonce stored in the second 32 bytes of the Message Digest Buffer |
32 | R Data of the passed signature | R Data of the passed signature |
32 | S Data of the passed signature | S Data of the passed signature |
1 | Opcode | Opcode |
1 | Mode | Mode |
2 | Param2 [LSB,MSB] | Param2 [LSB,MSB] |