|
sc-hsm-embedded
|
Functions | |
| void | ccidT1InitProtocol (scr_t *ctx) |
| int | ccidT1Term (struct scr *ctx) |
| int | ccidT1ReceiveBlock (scr_t *ctx) |
| int | ccidT1SendBlock (scr_t *ctx, unsigned char Nad, unsigned char Pcb, unsigned char *Buffer, int BuffLen) |
| int | ccidT1Resynch (scr_t *ctx, int SrcNode, int DestNode) |
| int | ccidT1AbortChain (scr_t *ctx, int SrcNode, int DestNode) |
| int | ccidT1GetBlock (scr_t *ctx, int SrcNode, int DestNode) |
| int | ccidT1SendData (scr_t *ctx, int HostMode, int SrcNode, int DestNode, unsigned char *Buffer, int BuffLen) |
| int | ccidT1ReceiveData (scr_t *ctx, int SrcNode, int DestNode, unsigned char *Buffer, int BuffLen) |
| int | ccidT1Transport (scr_t *ctx, int SrcNode, int DestNode, unsigned char *OBuffer, int OBuffLen, unsigned char *IBuffer, int IBuffLen) |
| int | ccidT1Process (struct scr *ctx, unsigned int lc, unsigned char *cmd, unsigned int *lr, unsigned char *rsp) |
| int | ccidT1Init (struct scr *ctx) |
| int ccidT1AbortChain | ( | scr_t * | ctx, |
| int | SrcNode, | ||
| int | DestNode | ||
| ) |
Abort a sequence of chained transmission blocks
| ctx | Reader context |
| SrcNode | Source node |
| DestNode | Destination node |
| int ccidT1GetBlock | ( | scr_t * | ctx, |
| int | SrcNode, | ||
| int | DestNode | ||
| ) |
Receive a transmission block and handle all S-block requests
| ctx | Reader context |
| SrcNode | Source node |
| DestNode | Destination node |
| int ccidT1Init | ( | struct scr * | ctx | ) |
Initialize T=1 protocol driver module
| ctx | Reader context |
| void ccidT1InitProtocol | ( | scr_t * | ctx | ) |
Initialize all T=1 protocol parameter to its default values
| ctx | Reader context |
| int ccidT1Process | ( | struct scr * | ctx, |
| unsigned int | lc, | ||
| unsigned char * | cmd, | ||
| unsigned int * | lr, | ||
| unsigned char * | rsp | ||
| ) |
Process a APDU using T=1 protocol
| ctx | Reader context |
| lc | Length of command APDU |
| cmd | Command APDU |
| lr | Length of response APDU |
| rsp | Response APDU |
| int ccidT1ReceiveBlock | ( | scr_t * | ctx | ) |
Receive a block in T=1 protocol
| ctx | Reader context |
| int ccidT1ReceiveData | ( | scr_t * | ctx, |
| int | SrcNode, | ||
| int | DestNode, | ||
| unsigned char * | Buffer, | ||
| int | BuffLen | ||
| ) |
Decode a received block into the data buffer passed to the application
| ctx | Reader context |
| SrcNode | Source node |
| DestNode | Destination node |
| Buffer | Incoming data buffer |
| BuffLen | Length of incoming data buffer |
| int ccidT1Resynch | ( | scr_t * | ctx, |
| int | SrcNode, | ||
| int | DestNode | ||
| ) |
Synchronize sequence counter in both sender and receiver after a transmission error has occurred
| ctx | Reader context |
| SrcNode | Source node |
| DestNode | Destination node |
| int ccidT1SendBlock | ( | scr_t * | ctx, |
| unsigned char | Nad, | ||
| unsigned char | Pcb, | ||
| unsigned char * | Buffer, | ||
| int | BuffLen | ||
| ) |
Send a block in T=1 protocol
| ctx | Reader context |
| Nad | Node address |
| Pcb | PCB address |
| Buffer | Outgoing buffer |
| BuffLen | Length of outgoing data |
| int ccidT1SendData | ( | scr_t * | ctx, |
| int | HostMode, | ||
| int | SrcNode, | ||
| int | DestNode, | ||
| unsigned char * | Buffer, | ||
| int | BuffLen | ||
| ) |
Send a block of data using T=1 protocol and handle large block with the chaining mechanism
| ctx | Reader context |
| HostMode | Indicator for host mode |
| SrcNode | Source node |
| DestNode | Destination node |
| Buffer | Outgoing data buffer |
| BuffLen | Length of outgoing data |
| int ccidT1Term | ( | struct scr * | ctx | ) |
Terminate driver module and release memory
| ctx | Reader context |
| int ccidT1Transport | ( | scr_t * | ctx, |
| int | SrcNode, | ||
| int | DestNode, | ||
| unsigned char * | OBuffer, | ||
| int | OBuffLen, | ||
| unsigned char * | IBuffer, | ||
| int | IBuffLen | ||
| ) |
Transport a data block using T=1 transmission protocol
| ctx | Reader context |
| SrcNode | Source node |
| DestNode | Destination node |
| OBuffer | Outgoing data buffer |
| OBuffLen | Length of outgoig data buffer |
| IBuffer | Incoming data buffer |
| IBuffLen | Length of incoming data buffer |