Protocol Stack Extension for APDU Exchange
This library is built on top of the generic hsw-protocol library and offers an extended interface for exchanging APDUs.
It can be used on top of any existing ifx_protocol_t stack to better fit the needs of interacting with secure elements.
Example
ifx_protocol_t protocol;
.ins = 0xA4u,
.p1 = 0x04u,
.p2 = 0x00u,
.lc = 0u,
.data = NULL,
.le = 0u
};
ifx_apdu_protocol_transceive(&protocol, &apdu, &response);
if (response.
sw != 0x9000u)
{
}
Generic protocol API for exchanging APDUs with secure elements.
APDU (response) en-/decoding utility.
Generic protocol API (ISO/OSI stack).
Data storage struct for APDU response information.
uint16_t sw
APDU response status word.
Data storage for APDU fields.
uint8_t cla
APDU instruction class.