Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send message with status 10 if unable to decrypt message from reader. #194

Merged
merged 1 commit into from
Jan 13, 2023

Conversation

davidz25
Copy link
Contributor

Previous behavior is that we would just terminate the session. With this change before session termination we send a message with no data and status 10 which according to 18013-5 Table 20 means "Error: session decryption".

It's not clear the standard actually requires an mdoc to do this but unfortunately it's something that certain test suites will check for.

Add new unit test to check the behavior and introduce symbolic constants instead of hardcoding 10 and 20.

Test: New unit test and all unit tests pass.
Test: Manually tested reference apps on two Pixel devices.
Issue: 115

Previous behavior is that we would just terminate the session. With
this change before session termination we send a message with no data
and status 10 which according to 18013-5 Table 20 means "Error:
session decryption".

It's not clear the standard actually requires an mdoc to do this but
unfortunately it's something that certain test suites will check for.

Add new unit test to check the behavior and introduce symbolic
constants instead of hardcoding 10 and 20.

Test: New unit test and all unit tests pass.
Test: Manually tested reference apps on two Pixel devices.
Issue: 115
@davidz25 davidz25 merged commit c9c4547 into master Jan 13, 2023
@davidz25 davidz25 deleted the issue-115 branch January 13, 2023 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No error code send to verifier during exception while decrypting request
2 participants