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

Remove APDU-batching and define T=0 protocol handling #14

Open
martinpaljak opened this issue Nov 21, 2018 · 2 comments
Open

Remove APDU-batching and define T=0 protocol handling #14

martinpaljak opened this issue Nov 21, 2018 · 2 comments

Comments

@martinpaljak
Copy link
Member

The BLE interface is comparable to the NFC interface, in high level. By definition, APDU-chat is a command-response pair protocol. In Java terms, the smallest interface to use is byte[] transmit(byte[]), like the relevant Android interface.

Responses to APDU commands, from the secure element, must be checked, depending on context, at earliest point and the only place where this can happen is the caller (not the SE element itself or the BLE server implementation, which have no knowledge of the context of those command-response pairs).

If the BLE interface is implemented against an always connected secure element via T=0, additional commands are to be sent to the secure element when the returned SW is 61XX or 6CXX. This must be documented for APDU handling.

Removing the additional APDU nesting allows to trim the protocol by a few bytes to speed it up slightly.

@martinpaljak
Copy link
Member Author

Similar to #8 but removes the "first layer".

@martinpaljak
Copy link
Member Author

Related to fidesmo/apdu-over-ble-android#7

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

No branches or pull requests

1 participant