6.3 GenKey
Command
The
GenKey
command performs three operations:- Private Key Creation: Creates a new random ECC private key. The command writes the generated key into the slot specified by the KeyID parameter.
- Public Key Computation: Outputs an ECC public corresponding to the private key stored in Slot 0. This mode of the command may be used to avoid storing the public key on the device at the expense of the time required to regenerate it.
- MAC Calculation:
GenKey
can also combine a public key referenced by the KeyID parameter with the current value of the session key, calculate a SHA-256 digest of the resulting message and return that MAC.