This header file provides access to smart-card functions for the game to access.
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| struct | tsSMARTCARD_INFO |
Enumerations | |
| enum | teSECURITY_GENERIC { SEC_3DES_KEY_SIZE = 24, sw1LeWarning = 0x61 } |
| enum | teSECURITY_CLASS { SEC_CLASS = 0x80 } |
| enum | teSECURITY_INST { SEC_SET_SESSION_ID = 0x00, SEC_AUTHENTICATE_FPGA = 0x02, SEC_GET_SESSION_KEY = 0x04, SEC_SET_SESSION_KEY = 0x06, SEC_SET_SECRET_KEY = 0x08, SEC_ZERO_COUNTERS = 0x0a, SEC_READ_COUNTERS = 0x0c } |
Functions | |
| int | sec_OpenSmartCard (tsSMARTCARD_INFO *psSmartCard, BYTE bKeyId, BYTE *abKey, int zlKeySize) |
| Open the smart card and enable security. | |
| int | sec_CloseSmartCard (tsSMARTCARD_INFO *psSmartCard) |
| Close the smart card comms channel. | |
| int | sec_AuthFpga (tsSMARTCARD_INFO *psSmartCard, unsigned char *pabData, int zLen) |
| Send a packet of data ot the FPGA and return the response,. | |
| char * | sec_GetZcbriErorStr (ZCBCIRET tRv) |
| Return the error code from a ZCBRI fn in string form. | |
| char * | sec_GetZccriErorStr (ZCCRIRET tRv) |
| Convert an error code form a ZCCRI function to string form. | |
| int | sec_SetSessionId (tsSMARTCARD_INFO *psSmartCard, unsigned long CurSessionId) |
| Use by the application to set a session ID for communicating with the smart card. | |
| int | sec_GetDesSessionKey (tsSMARTCARD_INFO *psSmartCard, LONG lIdx, BYTE *pabDesKeyBuf) |
| get a DES session key from the smart card | |
Variables | |
| unsigned char | abKeyGame [8] |
|
|
|
|
|
|
|
|
||||||||||||||||
|
Send a packet of data ot the FPGA and return the response,. Given a block of data send that to the FPGA and send the reply back to the calling applicaiton. The basic declaration for this command is: Command &H80 &H02 AuthFPGA( SessionId As Long, FpgaData As String*8 )
History |
Here is the call graph for this function:

|
|
Close the smart card comms channel. Given the reader and the card infomation close the channel to that smart card.
History |
Here is the call graph for this function:

|
||||||||||||||||
|
get a DES session key from the smart card This command is called from the game to obtain DES session keys to decrypt encrypted game data. There is not restriction on the number of different keys except the size of the storage space in the smart card. The basic declaration is: Command &H80 &H06 GetSessionKey( SessionId As Long, Indx As Byte, SessionKey As Des3Key )
History |
Here is the call graph for this function:

|
|
Return the error code from a ZCBRI fn in string form.
HistoryError codes returned by the ZcBri library calls |
|
|
Convert an error code form a ZCCRI function to string form.
HistoryError codes returned by the ZCCri library calls |
|
||||||||||||||||||||
|
Open the smart card and enable security. Firstly connect to the Reader and then connect to the smart card. Once this is established enable security on the smart card channel.
History |
Here is the call graph for this function:

|
||||||||||||
|
Use by the application to set a session ID for communicating with the smart card. This is called at the initiation of communications with the smart card it is passed to as an extra parameter to the smart card if this value changes then the smart card will reject any further communication requests The basic declaration for this command is: Command &H80 &H00 SetSessionId( SessionId As Long )
History |
Here is the call graph for this function:

|
|
This key is the general key used by the game application for authentication and retrevial of encrypted session keys. |
1.3.6