|
libchipcard 5.1.6
|
#include <gwenhywfar/inherit.h>#include <chipcard/chipcard.h>#include <chipcard/client.h>#include <chipcard/sharedstuff/pininfo.h>

Go to the source code of this file.
Macros | |
Flags for ISO Commands | |
| #define | LC_CARD_ISO_FLAGS_EFID_MASK 0x00000001f |
| #define | LC_CARD_ISO_FLAGS_RECSEL_MASK 0x0000000e0 |
| #define | LC_CARD_ISO_FLAGS_RECSEL_FIRST (0 << 5) |
| #define | LC_CARD_ISO_FLAGS_RECSEL_LAST (1 << 5) |
| #define | LC_CARD_ISO_FLAGS_RECSEL_NEXT (2 << 5) |
| #define | LC_CARD_ISO_FLAGS_RECSEL_PREV (3 << 5) |
| #define | LC_CARD_ISO_FLAGS_RECSEL_GIVEN (4 << 5) |
Typedefs | |
| typedef struct LC_CARD | LC_CARD |
Functions | |
Opening, Closing, Destroying | |
| CHIPCARD_API void | LC_Card_free (LC_CARD *cd) |
| CHIPCARD_API void | LC_Card_List2_freeAll (LC_CARD_LIST2 *l) |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_Open (LC_CARD *card) |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_Close (LC_CARD *card) |
Executing Card Commands | |
There are two ways of letting Libchipcard execute card commands:
When working with Libchipcard the latter method is preferred since only in this case Libchipcard can adapt APDUs in order to make them work with a given combination of card and reader. Otherwise the application has to take care of the specialties of a given reader or card by itself. | |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_ExecApdu (LC_CARD *card, const char *apdu, unsigned int len, GWEN_BUFFER *rbuf, LC_CLIENT_CMDTARGET t) |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_ExecCommand (LC_CARD *card, const char *commandName, GWEN_DB_NODE *cmdData, GWEN_DB_NODE *rspData) |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_BuildApdu (LC_CARD *card, const char *command, GWEN_DB_NODE *cmdData, GWEN_BUFFER *gbuf) |
Select Card/Application Type | |
Functions in this group tell Libchipcard which instruction set is to be used for LC_Card_ExecApdu(). It also selects the XML descriptions appropriate for the card application to be used by the functions LC_Card_SelectDf() and LC_Card_SelectEf(). A card can contain multiple applications, e.g. some HBCI cards additionally contain the GeldKarte application. Different card applications contain different files/folders (EF/DF), so Libchipcard needs to be told which card application is to be used. | |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_SelectCard (LC_CARD *card, const char *s) |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_SelectApp (LC_CARD *card, const char *appName) |
Select MF/DF/EF | |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_SelectMf (LC_CARD *card) |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_SelectDf (LC_CARD *card, const char *fname) |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_SelectEf (LC_CARD *card, const char *fname) |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_SelectEfById (LC_CARD *card, const int sid) |
XML Descriptions | |
| CHIPCARD_API GWEN_XMLNODE * | LC_Card_GetCardNode (const LC_CARD *card) |
| CHIPCARD_API GWEN_XMLNODE * | LC_Card_GetAppNode (const LC_CARD *card) |
| CHIPCARD_API GWEN_XMLNODE * | LC_Card_GetDfNode (const LC_CARD *card) |
| CHIPCARD_API GWEN_XMLNODE * | LC_Card_GetEfNode (const LC_CARD *card) |
Informational Functions | |
| CHIPCARD_API uint32_t | LC_Card_GetCardId (const LC_CARD *cd) |
| CHIPCARD_API const char * | LC_Card_GetReaderType (const LC_CARD *cd) |
| CHIPCARD_API const char * | LC_Card_GetDriverType (const LC_CARD *cd) |
| CHIPCARD_API uint32_t | LC_Card_GetReaderFlags (const LC_CARD *cd) |
| CHIPCARD_API const char * | LC_Card_GetCardType (const LC_CARD *cd) |
| CHIPCARD_API const GWEN_STRINGLIST * | LC_Card_GetCardTypes (const LC_CARD *cd) |
| CHIPCARD_API unsigned int | LC_Card_GetAtr (const LC_CARD *cd, const unsigned char **pbuf) |
| CHIPCARD_API LC_CLIENT * | LC_Card_GetClient (const LC_CARD *cd) |
Last Result | |
These functions return the result of the last command executed via LC_Card_ExecCommand (nearly all functions internally call that one) | |
| CHIPCARD_API int | LC_Card_GetLastSW1 (const LC_CARD *card) |
| CHIPCARD_API int | LC_Card_GetLastSW2 (const LC_CARD *card) |
| CHIPCARD_API const char * | LC_Card_GetLastResult (const LC_CARD *card) |
| CHIPCARD_API const char * | LC_Card_GetLastText (const LC_CARD *card) |
| CHIPCARD_API void | LC_Card_CreateResultString (const LC_CARD *card, const char *lastCommand, LC_CLIENT_RESULT res, GWEN_BUFFER *buf) |
Debugging Functions | |
| CHIPCARD_API void | LC_Card_Dump (const LC_CARD *cd, int indent) |
Pin Functions | |
| CHIPCARD_API LC_PININFO * | LC_Card_GetPinInfoById (LC_CARD *card, uint32_t pid) |
| CHIPCARD_API LC_PININFO * | LC_Card_GetPinInfoByName (LC_CARD *card, const char *name) |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_GetPinStatus (LC_CARD *card, unsigned int pid, int *maxErrors, int *currentErrors) |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_GetInitialPin (LC_CARD *card, int id, unsigned char *buffer, unsigned int maxLen, unsigned int *pinLength) |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_IsoVerifyPin (LC_CARD *card, uint32_t flags, const LC_PININFO *pi, const unsigned char *ptr, unsigned int size, int *triesLeft) |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_IsoModifyPin (LC_CARD *card, uint32_t flags, const LC_PININFO *pi, const unsigned char *oldptr, unsigned int oldsize, const unsigned char *newptr, unsigned int newsize, int *triesLeft) |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_IsoPerformVerification (LC_CARD *card, uint32_t flags, const LC_PININFO *pi, int *triesLeft) |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_IsoPerformModification (LC_CARD *card, uint32_t flags, const LC_PININFO *pi, int *triesLeft) |
Reading and Writing Data | |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_IsoReadBinary (LC_CARD *card, uint32_t flags, int offset, int size, GWEN_BUFFER *buf) |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_IsoWriteBinary (LC_CARD *card, uint32_t flags, int offset, const char *ptr, unsigned int size) |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_IsoUpdateBinary (LC_CARD *card, uint32_t flags, int offset, const char *ptr, unsigned int size) |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_IsoEraseBinary (LC_CARD *card, uint32_t flags, int offset, unsigned int size) |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_ReadBinary (LC_CARD *card, int offset, int size, GWEN_BUFFER *buf) |
Reading and Writing Records | |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_IsoReadRecord (LC_CARD *card, uint32_t flags, int recNum, GWEN_BUFFER *buf) |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_IsoWriteRecord (LC_CARD *card, uint32_t flags, int recNum, const char *ptr, unsigned int size) |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_IsoAppendRecord (LC_CARD *card, uint32_t flags, const char *ptr, unsigned int size) |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_IsoUpdateRecord (LC_CARD *card, uint32_t flags, int recNum, const char *ptr, unsigned int size) |
Crypto Functions | |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_IsoManageSe (LC_CARD *card, int tmpl, int kids, int kidp, int ar) |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_IsoEncipher (LC_CARD *card, const char *ptr, unsigned int size, GWEN_BUFFER *codeBuf) |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_IsoDecipher (LC_CARD *card, const char *ptr, unsigned int size, GWEN_BUFFER *plainBuf) |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_IsoSign (LC_CARD *card, const char *ptr, unsigned int size, GWEN_BUFFER *sigBuf) |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_IsoVerify (LC_CARD *card, const char *dptr, unsigned int dsize, const char *sigptr, unsigned int sigsize) |
| LC_CLIENT_RESULT | LC_Card_IsoInternalAuth (LC_CARD *card, int kid, const unsigned char *ptr, unsigned int size, GWEN_BUFFER *rBuf) |
Data Formats (Parsing and Generating) | |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_ParseData (LC_CARD *card, const char *format, GWEN_BUFFER *buf, GWEN_DB_NODE *dbData) |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_CreateData (LC_CARD *card, const char *format, GWEN_BUFFER *buf, GWEN_DB_NODE *dbData) |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_ParseRecord (LC_CARD *card, int recNum, GWEN_BUFFER *buf, GWEN_DB_NODE *dbRecord) |
| CHIPCARD_API LC_CLIENT_RESULT | LC_Card_CreateRecord (LC_CARD *card, int recNum, GWEN_BUFFER *buf, GWEN_DB_NODE *dbRecord) |
| #define LC_CARD_ISO_FLAGS_EFID_MASK 0x00000001f |
| #define LC_CARD_ISO_FLAGS_RECSEL_MASK 0x0000000e0 |
Mask for flags used with record based functions (like LC_Card_IsoReadRecord)
| #define LC_CARD_ISO_FLAGS_RECSEL_FIRST (0 << 5) |
Select first record (used with record based functions like LC_Card_IsoReadRecord)
| #define LC_CARD_ISO_FLAGS_RECSEL_LAST (1 << 5) |
Select last record (used with record based functions like LC_Card_IsoReadRecord)
| #define LC_CARD_ISO_FLAGS_RECSEL_NEXT (2 << 5) |
Select next record (used with record based functions like LC_Card_IsoReadRecord)
| #define LC_CARD_ISO_FLAGS_RECSEL_PREV (3 << 5) |
Select previous record (used with record based functions like LC_Card_IsoReadRecord)
| #define LC_CARD_ISO_FLAGS_RECSEL_GIVEN (4 << 5) |
Select given record (used with record based functions like LC_Card_IsoReadRecord)
| CHIPCARD_API void LC_Card_free | ( | LC_CARD * | cd | ) |
Release all ressources associated with the given card. You must call this function in order to avoid memory leaks.
References CHIPCARD_API, and LC_Card_free().
Referenced by LC_Card_free().
| CHIPCARD_API void LC_Card_List2_freeAll | ( | LC_CARD_LIST2 * | l | ) |
References CHIPCARD_API, and LC_Card_List2_freeAll().
Referenced by LC_Card_List2_freeAll().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_Open | ( | LC_CARD * | card | ) |
Opens a card obtained via LC_Client_GetNextCard. The action taken here depends on the derived card class (e.g. LC_DdvCard).
References CHIPCARD_API, and LC_Card_Open().
Referenced by LC_Card_Open().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_Close | ( | LC_CARD * | card | ) |
Closes the given card. The action taken here depends on the derived card class (e.g. LC_DdvCard).
References CHIPCARD_API, and LC_Card_Close().
Referenced by LC_Card_Close().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_ExecApdu | ( | LC_CARD * | card, |
| const char * | apdu, | ||
| unsigned int | len, | ||
| GWEN_BUFFER * | rbuf, | ||
| LC_CLIENT_CMDTARGET | t ) |
Execute a prebuilt APDU and return the result. This function can be used when relaying APDUs from other APIs (such as the CTAPI shipped with Libchipcard which allows to access the service of Libchipcard via CTAPI).
References CHIPCARD_API, and LC_Card_ExecApdu().
Referenced by LC_Card_ExecApdu().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_ExecCommand | ( | LC_CARD * | card, |
| const char * | commandName, | ||
| GWEN_DB_NODE * | cmdData, | ||
| GWEN_DB_NODE * | rspData ) |
Executes a command referenced by name. This function looks for the given command in the description files of the currently selected card and reader which holds the card. This way the resulting APDU will work with that particular combination.
This function only works after the functions LC_Card_SelectApp and LC_Card_SelectCard have been called (which is done implicitly by the open-functions set by e.g. LC_DDVCard_ExtendCard() etc.
References CHIPCARD_API, and LC_Card_ExecCommand().
Referenced by LC_Card_ExecCommand().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_BuildApdu | ( | LC_CARD * | card, |
| const char * | command, | ||
| GWEN_DB_NODE * | cmdData, | ||
| GWEN_BUFFER * | gbuf ) |
This function is used internally by LC_Card_ExecCommand to create an APDU from a command for a particular combination of card and reader.
References CHIPCARD_API, and LC_Card_BuildApdu().
Referenced by LC_Card_BuildApdu().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_SelectCard | ( | LC_CARD * | card, |
| const char * | s ) |
References CHIPCARD_API, and LC_Card_SelectCard().
Referenced by LC_Card_SelectCard().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_SelectApp | ( | LC_CARD * | card, |
| const char * | appName ) |
References CHIPCARD_API, and LC_Card_SelectApp().
Referenced by LC_Card_SelectApp().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_SelectMf | ( | LC_CARD * | card | ) |
This function selects the master file (corresponds to root on a filesystem).
References CHIPCARD_API, and LC_Card_SelectMf().
Referenced by LC_Card_SelectMf().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_SelectDf | ( | LC_CARD * | card, |
| const char * | fname ) |
Select a dedicated file below the currently selected one (or the master file). A DF can be thought of as a folder in a filesystem. Libchipcard looks this DF up in the XML description files of the current card and application an creates the appropriate APDU to select the DF either by short or long id (as determined by the XML files).
References CHIPCARD_API, and LC_Card_SelectDf().
Referenced by LC_Card_SelectDf().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_SelectEf | ( | LC_CARD * | card, |
| const char * | fname ) |
Select an elementary file below the currently selected DF (or MF). An EF can be thought of as a file in a filesystem. Libchipcard looks this EF up in the XML description files of the current card and application an creates the appropriate APDU to select the EF either by short or long id (as determined by the XML files).
References CHIPCARD_API, and LC_Card_SelectEf().
Referenced by LC_Card_SelectEf().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_SelectEfById | ( | LC_CARD * | card, |
| const int | sid ) |
Select an elementary file below the currently selected DF (or MF). An EF can be thought of as a file in a filesystem. Libchipcard looks this EF up in the XML description files of the current card and application an creates the appropriate APDU to select the EF either by short or long id (as determined by the XML files).
References CHIPCARD_API, and LC_Card_SelectEfById().
Referenced by LC_Card_SelectEfById().
| CHIPCARD_API GWEN_XMLNODE * LC_Card_GetCardNode | ( | const LC_CARD * | card | ) |
References CHIPCARD_API, and LC_Card_GetCardNode().
Referenced by LC_Card_GetCardNode().
| CHIPCARD_API GWEN_XMLNODE * LC_Card_GetAppNode | ( | const LC_CARD * | card | ) |
References CHIPCARD_API, and LC_Card_GetAppNode().
Referenced by LC_Card_GetAppNode().
| CHIPCARD_API GWEN_XMLNODE * LC_Card_GetDfNode | ( | const LC_CARD * | card | ) |
References CHIPCARD_API, and LC_Card_GetDfNode().
Referenced by LC_Card_GetDfNode().
| CHIPCARD_API GWEN_XMLNODE * LC_Card_GetEfNode | ( | const LC_CARD * | card | ) |
References CHIPCARD_API, and LC_Card_GetEfNode().
Referenced by LC_Card_GetEfNode().
| CHIPCARD_API uint32_t LC_Card_GetCardId | ( | const LC_CARD * | cd | ) |
The chipcard2 server identifies cards by ids which are unique in the server environment. No two cards can have the same id.
References CHIPCARD_API, and LC_Card_GetCardId().
Referenced by LC_Card_GetCardId().
| CHIPCARD_API const char * LC_Card_GetReaderType | ( | const LC_CARD * | cd | ) |
References CHIPCARD_API, and LC_Card_GetReaderType().
Referenced by LC_Card_GetReaderType().
| CHIPCARD_API const char * LC_Card_GetDriverType | ( | const LC_CARD * | cd | ) |
References CHIPCARD_API, and LC_Card_GetDriverType().
Referenced by LC_Card_GetDriverType().
| CHIPCARD_API uint32_t LC_Card_GetReaderFlags | ( | const LC_CARD * | cd | ) |
Returns the reader flags of the reader the given card is in (see LC_READER_FLAGS_KEYPAD and others).
References CHIPCARD_API, and LC_Card_GetReaderFlags().
Referenced by LC_Card_GetReaderFlags().
| CHIPCARD_API const char * LC_Card_GetCardType | ( | const LC_CARD * | cd | ) |
Returns the type of the given card. Possible values are "MEMORY" and "PROCESSOR".
References CHIPCARD_API, and LC_Card_GetCardType().
Referenced by LC_Card_GetCardType().
| CHIPCARD_API const GWEN_STRINGLIST * LC_Card_GetCardTypes | ( | const LC_CARD * | cd | ) |
Returns a stringlist containing all types which match the ATR string of the given card. Possibly contents are "ddv0", "ddv1", "geldkarte" etc.
References CHIPCARD_API, and LC_Card_GetCardTypes().
Referenced by LC_Card_GetCardTypes().
| CHIPCARD_API unsigned int LC_Card_GetAtr | ( | const LC_CARD * | cd, |
| const unsigned char ** | pbuf ) |
Returns the Answer To Reset string returned by the card upon power up. These bytes indicate some properties of the card (e.g. card type, manufacturer, memory size etc). This function returns a pointer to the internally stored ATR. The card object still remains the owner of the object returned (if any) so you must neither manipulate nor free it.
References CHIPCARD_API, and LC_Card_GetAtr().
Referenced by LC_Card_GetAtr().
| CHIPCARD_API LC_CLIENT * LC_Card_GetClient | ( | const LC_CARD * | cd | ) |
Returns the pointer to the client object this card belongs to.
References CHIPCARD_API, and LC_Card_GetClient().
Referenced by LC_Card_GetClient().
| CHIPCARD_API int LC_Card_GetLastSW1 | ( | const LC_CARD * | card | ) |
References CHIPCARD_API, and LC_Card_GetLastSW1().
Referenced by LC_Card_GetLastSW1().
| CHIPCARD_API int LC_Card_GetLastSW2 | ( | const LC_CARD * | card | ) |
References CHIPCARD_API, and LC_Card_GetLastSW2().
Referenced by LC_Card_GetLastSW2().
| CHIPCARD_API const char * LC_Card_GetLastResult | ( | const LC_CARD * | card | ) |
References CHIPCARD_API, and LC_Card_GetLastResult().
Referenced by LC_Card_GetLastResult().
| CHIPCARD_API const char * LC_Card_GetLastText | ( | const LC_CARD * | card | ) |
References CHIPCARD_API, and LC_Card_GetLastText().
Referenced by LC_Card_GetLastText().
| CHIPCARD_API void LC_Card_CreateResultString | ( | const LC_CARD * | card, |
| const char * | lastCommand, | ||
| LC_CLIENT_RESULT | res, | ||
| GWEN_BUFFER * | buf ) |
References CHIPCARD_API, and LC_Card_CreateResultString().
Referenced by LC_Card_CreateResultString().
| CHIPCARD_API void LC_Card_Dump | ( | const LC_CARD * | cd, |
| int | indent ) |
References CHIPCARD_API, and LC_Card_Dump().
Referenced by LC_Card_Dump().
| CHIPCARD_API LC_PININFO * LC_Card_GetPinInfoById | ( | LC_CARD * | card, |
| uint32_t | pid ) |
Returns a pininfo object of the pin given by its id. The caller becomes the owner of the object returned (if any) and must call LC_PinInfo_free on it to avoid memory leaks.
References CHIPCARD_API, and LC_Card_GetPinInfoById().
Referenced by LC_Card_GetPinInfoById().
| CHIPCARD_API LC_PININFO * LC_Card_GetPinInfoByName | ( | LC_CARD * | card, |
| const char * | name ) |
Returns a pininfo object of the pin given by its name. The caller becomes the owner of the object returned (if any) and must call LC_PinInfo_free on it to avoid memory leaks. Standard names are "ch_pin" for the cardholder pin and "eg_pin" for the device pin (needed by STARCOS cards to modify security data on a card).
References CHIPCARD_API, and LC_Card_GetPinInfoByName().
Referenced by LC_Card_GetPinInfoByName().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_GetPinStatus | ( | LC_CARD * | card, |
| unsigned int | pid, | ||
| int * | maxErrors, | ||
| int * | currentErrors ) |
References CHIPCARD_API, and LC_Card_GetPinStatus().
Referenced by LC_Card_GetPinStatus().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_GetInitialPin | ( | LC_CARD * | card, |
| int | id, | ||
| unsigned char * | buffer, | ||
| unsigned int | maxLen, | ||
| unsigned int * | pinLength ) |
References CHIPCARD_API, and LC_Card_GetInitialPin().
Referenced by LC_Card_GetInitialPin().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_IsoVerifyPin | ( | LC_CARD * | card, |
| uint32_t | flags, | ||
| const LC_PININFO * | pi, | ||
| const unsigned char * | ptr, | ||
| unsigned int | size, | ||
| int * | triesLeft ) |
References CHIPCARD_API, and LC_Card_IsoVerifyPin().
Referenced by LC_Card_IsoVerifyPin().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_IsoModifyPin | ( | LC_CARD * | card, |
| uint32_t | flags, | ||
| const LC_PININFO * | pi, | ||
| const unsigned char * | oldptr, | ||
| unsigned int | oldsize, | ||
| const unsigned char * | newptr, | ||
| unsigned int | newsize, | ||
| int * | triesLeft ) |
References CHIPCARD_API, and LC_Card_IsoModifyPin().
Referenced by LC_Card_IsoModifyPin().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_IsoPerformVerification | ( | LC_CARD * | card, |
| uint32_t | flags, | ||
| const LC_PININFO * | pi, | ||
| int * | triesLeft ) |
References CHIPCARD_API, and LC_Card_IsoPerformVerification().
Referenced by LC_Card_IsoPerformVerification().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_IsoPerformModification | ( | LC_CARD * | card, |
| uint32_t | flags, | ||
| const LC_PININFO * | pi, | ||
| int * | triesLeft ) |
References CHIPCARD_API, and LC_Card_IsoPerformModification().
Referenced by LC_Card_IsoPerformModification().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_IsoReadBinary | ( | LC_CARD * | card, |
| uint32_t | flags, | ||
| int | offset, | ||
| int | size, | ||
| GWEN_BUFFER * | buf ) |
References CHIPCARD_API, and LC_Card_IsoReadBinary().
Referenced by LC_Card_IsoReadBinary().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_IsoWriteBinary | ( | LC_CARD * | card, |
| uint32_t | flags, | ||
| int | offset, | ||
| const char * | ptr, | ||
| unsigned int | size ) |
References CHIPCARD_API, and LC_Card_IsoWriteBinary().
Referenced by LC_Card_IsoWriteBinary().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_IsoUpdateBinary | ( | LC_CARD * | card, |
| uint32_t | flags, | ||
| int | offset, | ||
| const char * | ptr, | ||
| unsigned int | size ) |
References CHIPCARD_API, and LC_Card_IsoUpdateBinary().
Referenced by LC_Card_IsoUpdateBinary().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_IsoEraseBinary | ( | LC_CARD * | card, |
| uint32_t | flags, | ||
| int | offset, | ||
| unsigned int | size ) |
References CHIPCARD_API, and LC_Card_IsoEraseBinary().
Referenced by LC_Card_IsoEraseBinary().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_ReadBinary | ( | LC_CARD * | card, |
| int | offset, | ||
| int | size, | ||
| GWEN_BUFFER * | buf ) |
This functions reads any number of bytes from an already selected file of the card. It therefore issues multiple read requests until all bytes are read.
References CHIPCARD_API, and LC_Card_ReadBinary().
Referenced by LC_Card_ReadBinary().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_IsoReadRecord | ( | LC_CARD * | card, |
| uint32_t | flags, | ||
| int | recNum, | ||
| GWEN_BUFFER * | buf ) |
References CHIPCARD_API, and LC_Card_IsoReadRecord().
Referenced by LC_Card_IsoReadRecord().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_IsoWriteRecord | ( | LC_CARD * | card, |
| uint32_t | flags, | ||
| int | recNum, | ||
| const char * | ptr, | ||
| unsigned int | size ) |
References CHIPCARD_API, and LC_Card_IsoWriteRecord().
Referenced by LC_Card_IsoWriteRecord().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_IsoAppendRecord | ( | LC_CARD * | card, |
| uint32_t | flags, | ||
| const char * | ptr, | ||
| unsigned int | size ) |
References CHIPCARD_API, and LC_Card_IsoAppendRecord().
Referenced by LC_Card_IsoAppendRecord().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_IsoUpdateRecord | ( | LC_CARD * | card, |
| uint32_t | flags, | ||
| int | recNum, | ||
| const char * | ptr, | ||
| unsigned int | size ) |
References CHIPCARD_API, and LC_Card_IsoUpdateRecord().
Referenced by LC_Card_IsoUpdateRecord().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_IsoManageSe | ( | LC_CARD * | card, |
| int | tmpl, | ||
| int | kids, | ||
| int | kidp, | ||
| int | ar ) |
References CHIPCARD_API, and LC_Card_IsoManageSe().
Referenced by LC_Card_IsoManageSe().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_IsoEncipher | ( | LC_CARD * | card, |
| const char * | ptr, | ||
| unsigned int | size, | ||
| GWEN_BUFFER * | codeBuf ) |
References CHIPCARD_API, and LC_Card_IsoEncipher().
Referenced by LC_Card_IsoEncipher().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_IsoDecipher | ( | LC_CARD * | card, |
| const char * | ptr, | ||
| unsigned int | size, | ||
| GWEN_BUFFER * | plainBuf ) |
References CHIPCARD_API, and LC_Card_IsoDecipher().
Referenced by LC_Card_IsoDecipher().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_IsoSign | ( | LC_CARD * | card, |
| const char * | ptr, | ||
| unsigned int | size, | ||
| GWEN_BUFFER * | sigBuf ) |
References CHIPCARD_API, and LC_Card_IsoSign().
Referenced by LC_Card_IsoSign().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_IsoVerify | ( | LC_CARD * | card, |
| const char * | dptr, | ||
| unsigned int | dsize, | ||
| const char * | sigptr, | ||
| unsigned int | sigsize ) |
References LC_Card_IsoVerify().
Referenced by LC_Card_IsoVerify().
| LC_CLIENT_RESULT LC_Card_IsoInternalAuth | ( | LC_CARD * | card, |
| int | kid, | ||
| const unsigned char * | ptr, | ||
| unsigned int | size, | ||
| GWEN_BUFFER * | rBuf ) |
References CHIPCARD_API, and LC_Card_IsoInternalAuth().
Referenced by LC_Card_IsoInternalAuth().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_ParseData | ( | LC_CARD * | card, |
| const char * | format, | ||
| GWEN_BUFFER * | buf, | ||
| GWEN_DB_NODE * | dbData ) |
References CHIPCARD_API, and LC_Card_ParseData().
Referenced by LC_Card_ParseData().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_CreateData | ( | LC_CARD * | card, |
| const char * | format, | ||
| GWEN_BUFFER * | buf, | ||
| GWEN_DB_NODE * | dbData ) |
References CHIPCARD_API, and LC_Card_CreateData().
Referenced by LC_Card_CreateData().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_ParseRecord | ( | LC_CARD * | card, |
| int | recNum, | ||
| GWEN_BUFFER * | buf, | ||
| GWEN_DB_NODE * | dbRecord ) |
References CHIPCARD_API, and LC_Card_ParseRecord().
Referenced by LC_Card_ParseRecord().
| CHIPCARD_API LC_CLIENT_RESULT LC_Card_CreateRecord | ( | LC_CARD * | card, |
| int | recNum, | ||
| GWEN_BUFFER * | buf, | ||
| GWEN_DB_NODE * | dbRecord ) |
References LC_Card_CreateRecord().
Referenced by LC_Card_CreateRecord().