SC25J10使用手冊目錄 (中文版,共計67頁) 請由此下載目錄PDF檔 1. 簡介.............................................................................................. 4 1.1. Smart Card SDK .............................................................................. 4 1.2. SC25J10 Series API 1.0 .................................................................. 4 1.3. Encryption 簡介................................................................................ 4 1.3.1. 對稱式加密法...........................................................................................4 1.3.2. 非對稱式加密法........................................................................................4 1.3.3. DES / Triple DES ....................................................................................5 1.3.4. Mutual Symmetrical Authentication ...........................................................5 1.4. The Access Control of SC25J10 ....................................................... 7 1.4.1. Partition................................................................................................7 1.4.2. PIN ......................................................................................................7 1.4.3. Unblock / PUK........................................................................................7 1.4.4. Terminal Key .........................................................................................7 1.5. Verify Models with SC25J10............................................................ 8 1.5.1. Initiating...............................................................................................8 1.5.2. Model-1:PIN 驗證..................................................................................9 1.5.3. Model-2:Standalone Application 的Terminal Key 驗證............................... 10 1.5.4. Model-3:Client-Server Application 的Terminal Key 驗證............................. 12 1.5.5. Model-4:Client-Server Application 的Server 確認遠端................................. 14 2. Win32 DLL API.......................................................................... 16 2.1. 簡介............................................................................................... 16 2.2. Terminal API................................................................................. 16 2.2.1. ScTmConnect ...................................................................................... 16 2.2.2. ScTmDisconnect................................................................................... 16 2.2.3. ScTmSetKeyDirectly ............................................................................. 17 2.2.4. ScTmCalcResp ..................................................................................... 17 2.2.5. ScTmAskRnd ....................................................................................... 18 2.2.6. ScTmMSAGetKey.................................................................................. 18 2.2.7. ScTmMSAGetCheckKey ......................................................................... 19 2.3. Card API ....................................................................................... 21 2.3.1. ScConnect........................................................................................... 21 2.3.2. ScDisconnect ....................................................................................... 21 2.3.3. ScGetSn ............................................................................................. 22 2.3.4. ScAskRnd............................................................................................ 22 2.3.5. ScVerifyKey ......................................................................................... 23 2.3.6. ScSetPin ............................................................................................. 23 2.3.7. ScVerifyPin.......................................................................................... 24 2.3.8. ScGetTrialCounterOfPin ......................................................................... 24 2.3.9. ScGetTrialCounterOfKey ........................................................................ 25 2.3.10. ScSetPuk ............................................................................................ 25 2.3.11. ScUnblockPin....................................................................................... 26 2.3.12. ScReadData......................................................................................... 26 2.3.13. ScWriteData ........................................................................................ 27 2.3.14. ScMSACalcResp.................................................................................... 28 2.3.15. ScGetLastError..................................................................................... 28 3. ActiveX DLL API........................................................................ 30 3.1. 簡介............................................................................................... 30 3.2. Terminal API................................................................................. 30 3.2.1. TmConnect Function ............................................................................. 30 3.2.2. TmDisconnect Function ......................................................................... 30 3.2.3. TmSetKeyDirectly Function .................................................................... 31 3.2.4. TmCalcResp Function............................................................................ 31 3.2.5. TmAskRnd Function .............................................................................. 32 3.2.6. TmMSAGetKey Function ........................................................................ 32 3.2.7. TmMSAGetCheckKey Function ................................................................ 33 3.3. Card API ....................................................................................... 35 3.3.1. Connect Function ................................................................................. 35 3.3.2. Disconnect Function.............................................................................. 35 3.3.3. GetSn Function .................................................................................... 36 3.3.4. AskRnd Function .................................................................................. 36 3.3.5. VerifyKey Function................................................................................ 37 3.3.6. SetPin Function.................................................................................... 37 3.3.7. VerifyPin Function................................................................................. 38 3.3.8. GetTrialCounterOfPin Function................................................................ 38 3.3.9. GetTrialCounterOfKey Function ............................................................... 39 3.3.10. SetPuk Function ................................................................................... 39 3.3.11. UnblockPin Function.............................................................................. 40 3.3.12. ReadData Function ............................................................................... 41 3.3.13. WriteData Function............................................................................... 41 3.3.14. MSACalcResp Function .......................................................................... 42 3.3.15. GetLastError........................................................................................ 43 4. VBScript API ............................................................................. 44 4.1. 簡介............................................................................................... 44 4.2. Terminal API................................................................................. 44 4.2.1. TmConnect Function ............................................................................. 44 4.2.2. TmDisconnect Function ......................................................................... 44 4.2.3. TmSetKeyDirectly Function .................................................................... 44 4.2.4. TmCalcResp Function............................................................................ 45 4.2.5. TmAskRnd Function .............................................................................. 45 4.2.6. TmMSAGetKey Function ........................................................................ 46 4.2.7. TmMSAGetCheckKey Function ................................................................ 47 4.3. Card API ....................................................................................... 48 4.3.1. Connect Function ................................................................................. 48 4.3.2. Disconnect Function.............................................................................. 48 4.3.3. GetSn Function .................................................................................... 49 4.3.4. AskRnd Function .................................................................................. 49 4.3.5. VerifyKey Function................................................................................ 49 4.3.6. SetPin Function.................................................................................... 50 4.3.7. VerifyPin Function................................................................................. 51 4.3.8. GetTrialCounterOfPin Function................................................................ 51 4.3.9. GetTrialCounterOfKey Function ............................................................... 52 4.3.10. SetPuk Function ................................................................................... 52 4.3.11. UnblockPin Function.............................................................................. 53 4.3.12. ReadData Function ............................................................................... 53 4.3.13. WriteData Function............................................................................... 54 4.3.14. MSACalcResp Function .......................................................................... 55 4.3.15. GetLastError........................................................................................ 55 5. Sample Codes ........................................................................... 56 5.1. VC................................................................................................. 56 5.2. VB6............................................................................................... 60 Appendix ......................................................................................... 65 Error Code List ........................................................................................ 65 |