Deeptrust for PCI security architecture  SPEC98T17 rev E
Specification of Deeptrust, the Security Architecture for Cortex-M.

List of functions

int pci_smartcard_config (SCARD_CONF sconf)
 Configures the Smart Card communication. More...
 
int pci_smartcard_transact_APDU (unsigned char APDU_Res[], unsigned int *APDU_Res_len, unsigned int timeout, unsigned char APDU_Req[], unsigned int *APDU_Req_len)
 Performs an APDU exchange with the smart card. This function conforms to the EMV-Level 1 specification. More...
 
int pci_smartcard_wait_card_insertion (unsigned int timeout)
 Wait for the smart card being inserted. More...
 
int pci_smartcard_wait_card_removal (unsigned int timeout)
 Wait for the smart card being removed. More...
 

Detailed Description

This of module is in charge of handling communication with Smart Cards while conforming to the EMV Level-1 specification.

Function Documentation

§ pci_smartcard_config()

int pci_smartcard_config ( SCARD_CONF  sconf)

Configures the Smart Card communication.

Parameters
[in]sconfThe smart card configuration
Returns
See error codes

§ pci_smartcard_transact_APDU()

int pci_smartcard_transact_APDU ( unsigned char  APDU_Res[],
unsigned int *  APDU_Res_len,
unsigned int  timeout,
unsigned char  APDU_Req[],
unsigned int *  APDU_Req_len 
)

Performs an APDU exchange with the smart card. This function conforms to the EMV-Level 1 specification.

Parameters
APDU_ResThe apdu resource
APDU_Res_lenThe apdu resource length
[in]timeoutThe timeout
APDU_ReqThe apdu request
[in]APDU_Req_lenThe apdu request length
Returns
See error codes

§ pci_smartcard_wait_card_insertion()

int pci_smartcard_wait_card_insertion ( unsigned int  timeout)

Wait for the smart card being inserted.

Parameters
[in]timeoutThe timeout
Returns
See error codes

§ pci_smartcard_wait_card_removal()

int pci_smartcard_wait_card_removal ( unsigned int  timeout)

Wait for the smart card being removed.

Parameters
[in]timeoutThe timeout
Returns
See error codes