5.2.2.2 Public Key Generation
If the slot has been so configured, the ECC public key can be regenerated from a stored ECC private key and output on the bus. In addition, if so desired, a public key digest can also be generated and stored in TempKey at the same time.
For the ATECC608A-TNGLoRaWAN, the public key can be generated from the stored private key in Slot 1. Optional digest generation is also allowed.
Opcode |
Mode |
KeyID |
OtherData | Description |
---|---|---|---|---|
0x40 | 0x00 | 0x00 0[Slot] | — | Public key generated and output on the bus |
0x40 | 0x08 | 0x00 0[Slot] | — |
|
Name | Size | Response |
---|---|---|
Response | 1 byte | ECC Fault code if command fails |
64 bytes | Public keys X and Y coordinate the command’s success |
Public Key Digest Generation
A SHA256 Hash is performed over 128 bytes to generate a digest from the public key.
32 bytes |
TempKey |