ISO14443A ApplicationProcess delayed responses #235
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.