libtropic
C library for TROPIC01 chip

◆ lt_test_rev_ecc_key_generate()

void lt_test_rev_ecc_key_generate ( lt_handle_t h)

Test steps:

  1. Start Secure Session with pairing key slot 0.
  2. Check if all slots are empty.
  3. In each slot, generate private keys using P256 curve.
  4. Try generating again, also using Ed25519 curve and check for errors.
  5. Read the generated public key and check curve and origin.
  6. Erase the key slot.
  7. Repeat steps 2-6 for the Ed25519 curve.
Parameters
hDevice's handle