Synchronously transmits a specified APDU to the Smart Card and returns a response.
- macOS 10.12+
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.
On return, contains the result code as represented by the first two bytes (
SW1SW2) of the returned data.
On return, if an error occurred when attempting to create a session or execute the block, contains details about the error.
The returned data without the first two bytes (
nil if an error occured.