Libtropic API
SDK for the TROPIC01 secure element
Version: master (latest)
Loading...
Searching...
No Matches

◆ lt_test_rev_mcounter()

void lt_test_rev_mcounter ( lt_handle_t h)

Test steps:

  1. Try to init each counter with random value twice, then try a few decrements.
  2. Set each of the counters to random small value, then decrement to zero. Try decrement one more time after reaching 0 – should fail with UPDATE_ERROR.
  3. Try to set all counters with known value and check that no counter was assigned wrong value.
Parameters
hHandle for communication with TROPIC01