libtropic
C library for TROPIC01 chip
◆
lt_test_rev_mac_and_destroy()
void lt_test_rev_mac_and_destroy
(
lt_handle_t
*
h
)
Test steps:
Start Secure Session with pairing key slot 0.
Setup random PIN with randomly generated number of attempts.
Do a random number of wrong attempts (less than the maximum number of attempts).
Do an attempt with the correct PIN with the first understroyed slot and compare the cryptographic key with the one from the setup phase.
Restore all destroyed slots.
Do an attempt with the correct PIN with all the used slots and compare the cryptographic keys with the one from the setup phase.
Parameters
h
Device's handle
libtropic functional tests
Generated by
1.9.1