Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
en:sdk_api [2018/03/20 15:17]
yjjung
en:sdk_api [2018/04/16 17:03]
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 credential ​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.
  
  
Line 25: Line 25:
 enum enum
 { {
-    BS2_CRED_KEY_REQ_COMM = false+    BS2_CRED_KEY_REQ_COMM = 0
-    BS2_CRED_KEY_REQ_DATA = true,+    BS2_CRED_KEY_REQ_DATA = 1,
 }; };
  
Line 41: Line 41:
     uint32_t maxPacketSize;​ ///<​ 4 bytes     uint32_t maxPacketSize;​ ///<​ 4 bytes
     uint8_t ​ key[BS2_CRED_KEY_SIZE];​ ///<​ 32 bytes     uint8_t ​ key[BS2_CRED_KEY_SIZE];​ ///<​ 32 bytes
-    ​bool     dualIDSupported;​ ///<​ 1 byte +    ​uint8_t  ​dualIDSupported;​ ///<​ 1 byte 
-    ​bool     useAlphanumericID;​ ///<​ 1 byte +    ​uint8_t  ​useAlphanumericID;​ ///<​ 1 byte 
-    ​bool     credentialKeySupported;​ ///<​ 1 byte +    ​uint8_t  ​credentialKeySupported;​ ///<​ 1 byte 
-    ​bool     credentialKeyRequest;​ ///<​ 1 byte+    ​uint8_t  ​credentialKeyRequest;​ ///<​ 1 byte
     uint8_t ​ reserved[28];​ ///<​ 28 bytes (reserved)     uint8_t ​ reserved[28];​ ///<​ 28 bytes (reserved)
 } BS2CredentialKeyInfo;​ } BS2CredentialKeyInfo;​