Asynchronously transmits a specified APDU to the Smart Card and returns a response.
- macOS 10.10+
INScode of the APDU.
P1code of the APDU.
P2code of the APDU.
The data field of the APDU, or
nilif no input data field should be present—for example, an
The length of the data serves as
Lcfield of the APDU.
The expected number of bytes to be returned, or
nilif no output data are expected—for example, an
0to accept as many bytes as the card provides.
A block to be called when the response is returned.
The returned data without the first two bytes (
nilif an error occured.
The result code as represented by the first two bytes (
SW1SW2) of the returned data.
If a communication error occurred or the
swresult code is anything other than
0x9000, contains details about the error.