Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:sdk_api [2018/03/20 15:05] yjjung |
en:sdk_api [2018/09/10 14:49] yjjung [SDK API] |
||
---|---|---|---|
Line 12: | Line 12: | ||
* [[BS2_ComputeCRC16CCITT]]: Calculates the CRC-16 CCITT checksum. | * [[BS2_ComputeCRC16CCITT]]: Calculates the CRC-16 CCITT checksum. | ||
* [[BS2_GetCardModel]]: Retrieves the supported card models. | * [[BS2_GetCardModel]]: Retrieves the supported card models. | ||
- | * [[BS2_GetCredentialKeyInfo]]: Gets the encryption key for the device. | + | * [[BS2_GetDataEncryptKey]]: Gets the encryption key for the device. |
- | * [[BS2_SetCredentialKeyInfo]]: Sets the encryption key for the device. | + | * [[BS2_SetDataEncryptKey]]: Sets the encryption key for the device. |
- | * [[BS2_RemoveCredentialKeyInfo]]: Removes the encryption key for the device. | + | * [[BS2_RemoveDataEncryptKey]]: Removes the encryption key for the device. |
+ | * [[BS2_SetDeviceSearchingTimeout]] : Specifies the device searching time. | ||
+ | |||
+ | |||
+ | ===== Structure ===== | ||
+ | ==== BS2EncryptKey ==== | ||
+ | <code cpp> | ||
+ | enum | ||
+ | { | ||
+ | BS2_ENC_KEY_SIZE = 32, | ||
+ | }; | ||
+ | |||
+ | /** | ||
+ | * BS2EncryptKey | ||
+ | */ | ||
+ | typedef struct | ||
+ | { | ||
+ | uint8_t key[BS2_ENC_KEY_SIZE]; | ||
+ | uint8_t reserved[32]; | ||
+ | } BS2EncryptKey; | ||
+ | </code> | ||
+ | |||
+ | 1. //key// \\ | ||
+ | The key value used by the device. \\ | ||
+ | |||
+ | 2. //reserved// \\ | ||
+ | Reserved space. \\ |