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:smartcard_api [2020/06/01 17:12] kkshin [BS2SmartCardData] |
en:smartcard_api [2020/09/10 16:27] yjjung |
||
---|---|---|---|
Line 58: | Line 58: | ||
uint16_t issueCount; | uint16_t issueCount; | ||
uint8_t duressMask; | uint8_t duressMask; | ||
- | uint8_t reserved[5]; | + | uint8_t cardAuthMode; |
- | } BS2SmartCardHeader; | + | uint8_t useAlphanumericID; |
+ | uint8_t cardAuthModeEx; | ||
+ | uint8_t numOfFaceTemplate; | ||
+ | uint8_t reserved[1]; | ||
+ | } BS2SmartCardHeader; | ||
</code> | </code> | ||
**1. //hdrCRC//** \\ | **1. //hdrCRC//** \\ | ||
Line 78: | Line 82: | ||
**4. //numOfTemplate//** \\ | **4. //numOfTemplate//** \\ | ||
Number of templates. \\ \\ | Number of templates. \\ \\ | ||
+ | <WRAP important> | ||
+ | Based on AoC structure, template data is stored in [[smartcard_api#BS2SmartCardCredentials]]. \\ | ||
+ | Here you can store either fingerprint or face template. Both fingerprint and face templates can not be stored together. \\ | ||
+ | Thus, you have to set numOfFacetemplate = 0 if you want to store fingerprint template data. | ||
+ | </WRAP> | ||
+ | |||
+ | |||
**5. //templateSize//** \\ | **5. //templateSize//** \\ | ||
Size of the template. A normal fingerprint template is a fixed 384 byte. \\ | Size of the template. A normal fingerprint template is a fixed 384 byte. \\ | ||
Line 86: | Line 97: | ||
**7. //duressMask//** \\ | **7. //duressMask//** \\ | ||
Mask for whether there is a duress finger. \\ | Mask for whether there is a duress finger. \\ | ||
+ | **8. //cardAuthMode//** \\ | ||
+ | ''Other devices'' Card authentication mode. \\ | ||
+ | ''FaceStation F2'' Please use **cardAuthModeEx** instead \\ | ||
+ | <WRAP group 50%> | ||
+ | ^Value ^Description ^ | ||
+ | |2 |Card only | | ||
+ | |3 |Card + Fingerprint | | ||
+ | |4 |Card + PIN | | ||
+ | |5 |Card + Fingerprint or PIN | | ||
+ | |6 |Card + Fingerprint + PIN | | ||
+ | |254 |Cannot use | | ||
+ | |255 |Not defined(System defined mode) | | ||
+ | </WRAP> | ||
+ | **9. //useAlphanumericID//** \\ | ||
+ | Flag of usage of Alphanumeric ID \\ | ||
+ | **10. //cardAuthModeEx//** \\ | ||
+ | ''Other devices'' Please use **cardAuthMode** instead \\ | ||
+ | [+ V2.7.1] ''FaceStation F2'' Card authentication mode \\ | ||
+ | <WRAP group 60%> | ||
+ | ^Value ^Level 1 ^Level 2 ^Level 3 ^ | ||
+ | |21 |Card | | | | ||
+ | |22 |Card |Face | | | ||
+ | |23 |Card |Fingerprint | | | ||
+ | |24 |Card |PIN | | | ||
+ | |25 |Card |Face or Fingerprint | | | ||
+ | |26 |Card |Face or PIN | | | ||
+ | |27 |Card |Fingerprint or PIN | | | ||
+ | |28 |Card |Face or Fingerprint or PIN | | | ||
+ | |29 |Card |Face |Fingerprint | | ||
+ | |30 |Card |Face |PIN | | ||
+ | |31 |Card |Fingerprint |Face | | ||
+ | |32 |Card |Fingerprint |PIN | | ||
+ | |33 |Card |Face or Fingerprint |PIN | | ||
+ | |34 |Card |Face |Fingerprint or PIN | | ||
+ | |35 |Card |Fingerprint |Face or PIN | | ||
+ | |254 |Cannot use | | | | ||
+ | |255 |Not defined(System defined mode) | | | | ||
+ | </WRAP> | ||
+ | **11. //numOfFaceTemplate//** \\ | ||
+ | Number of face templates. \\ | ||
+ | Basic size of template is different between fingerprint and face(Fingerprint:384, Face:552). \\ | ||
+ | You can consider the total size of templateData in [[smartcard_api#BS2SmartCardCredentials]]. | ||
+ | <WRAP important> | ||
+ | Based on AoC structure, template data is stored in [[smartcard_api#BS2SmartCardCredentials]]. \\ | ||
+ | Here you can store either fingerprint or face template. Both fingerprint and face templates can not be stored together. \\ | ||
+ | Thus, you have to set numOftemplate = 0 if you want to store face template data. | ||
+ | </WRAP> | ||
+ | **12. //reserved//** \\ | ||
+ | Reserved \\ | ||
+ | |||
==== BS2SmartCardCredentials ==== | ==== BS2SmartCardCredentials ==== |