ChameleonMini
ChameleonMini copied to clipboard
ISO14443A ApplicationProcess delayed responses
ApplicationProcess can return ISO14443A_APP_DELAYED_RESPONSE, in which case the response will be sent later from the ApplicationTask using ISO14443ASendResponse.
This allows the computation of the response to be done outside of the Chameleon, and can be used to forward messages and perform a relay attacks.
To do this, when receiving a cryptographic challenge, one should respond with a WTX request and, upon receiving the WTX response, return ISO14443A_APP_DELAYED_RESPONSE from the AppProcess function. Later, when the cryptographic response is received (for example over USARTE in the ApplicationTask), ISO14443ASendResponse must be called with the response. If the response doesn't come within the waiting time, ISO14443ASendResponse should be called with another WTX request.