Cdex pg

361 views

Published on

  • Be the first to comment

  • Be the first to like this

Cdex pg

  1. 1. SMART-CARD Smart- !" ! #$ # # !"#$% 49 2001
  2. 2. B C @EELP D$?GHIE# "$DINJ!# $M!"@E!I RGE?U!P (% "#!QI AOL?@ ), %V$DAW!V %D!E@H!BI"?! O@FNGJ@IHGX K!KQ!$#I?G cdexp.dll. N!%$D!#"A EI$KV$D!H@A "MN@%$BE@A !ER$NH@U!A, "%IDIE!A $ %$OH$JELV $T!K?@V,%$OE!?@XW!V MN! N@K$#I RGE?U!P K!KQ!$#I?!.DSSSCT File : cdex_pg.doc Ref : CDEXPPG0000 Revision:2.0 2 / 49 Copyright © Dekart S.R.L (www.dekart.com) - 2001 This document shall not be disclosed to a third party without prior written consent of Dekart S.R.L. !?@?@A B@"#C D@EE$F$ D$?GHIE#@ EI H$JI# KL#C %$"MN$!O%IDIE@ % ?@?$P KL #$ E! KLQ$ R$NHI ! ?@?!H! KL, #$ E! KLQ$ "NID"#%@H! KIO M!"CHIEE$F$ N@ONITIE!A %Q@DIQCU@ @%#$N"?!V MN@%. A " ! .
  3. 3. E #1. GH$ IJEKELIM I NAKEOJPH EQERJBSHJIM (LKEAAB$IU)..................................... 4 ....................................................................................................................................................... 4 Y Z ........................................................................................................................... 4 [ Z [ ............................................................................................. 4 [ ] .......................................................................................................................................... 52. JBRJBSHJIH QIQKIEGHXI CDEXP.DLL................................................................................. 63. EQ[IH AOHHJIM ........................................................................................................................... 63. E IABJIH ]NJX^IU QIQKIEGHXI CDEXP.DLL ............................................................... 8 3.1. ]NJX^IM CDEXPCHECKACCESSCARD ......................................................................................... 8 3.2. ]NJX^IM CDEXPCONNECTSAMCARD ......................................................................................... 9 3.3. ]NJX^IM CDEXPCONNECTUSERCARD ......................................................................................... 9 3.4. ]NJX^IM CDEXPCLOSECARD ..................................................................................................... 10 3.5. ]NJX^IM CDEXPGETCARDSTAT................................................................................................. 10 3.6. ]NJX^IM CDEXPGETCHALLENGE .............................................................................................. 11 3.7. ]NJX^IM CDEXPSELECTFILEINCARD ........................................................................................ 12 3.8. ]NJX^IM CDEXPREADFILERECORD .......................................................................................... 12 3.9. ]NJX^IM CDEXPUPDATEFILERECORD ...................................................................................... 13 3.10. ]NJX^IM CDEXPSTATICAUTH ................................................................................................ 14 3.11. ]NJX^IM CDEXPEXTERNALAUTH .......................................................................................... 15 3.12. ]NJX^IM CDEXPINTERNALAUTH ........................................................................................... 16 3.13. ]NJX^IM CDEXPDEBITTRANSACTION .................................................................................... 17 3.14. ]NJX^IM CDEXPCREDITTRANSACTION ................................................................................. 19 3.15. ]NJX^IM CDEXPGETCARDDATA ............................................................................................ 20 3.16. ]NJX^IM CDEXPGETPURSEDATA........................................................................................... 22 3.17. ]NJX^IM CDEXPUPDATEMAXAMOUNT ................................................................................. 234. $IKElHJIM................................................................................................................................... 25 4.1. AEEQ[HJIM EQ EmIQXBn........................................................................................................... 25 4.2. $I H$ OPREOB ]NJX^IU ENKM IR $EL$B P (BORLAND C++ V.5.01) ....................... 29 4.3. ]E$ BGP XE BJ, EBOBH Pn JB XB$GN I OERO$B[BH PU XE AGBGNAB .................. 42DSSSCT File : cdex_pg.doc Ref : CDEXPPG0000 Revision:2.0 3 / 49 Copyright © Dekart S.R.L (www.dekart.com) - 2001 This document shall not be disclosed to a third party without prior written consent of Dekart S.R.L. !?@?@A B@"#C D@EE$F$ D$?GHIE#@ EI H$JI# KL#C %$"MN$!O%IDIE@ % ?@?$P KL #$ E! KLQ$ R$NHI ! ?@?!H! KL, #$ E! KLQ$ "NID"#%@H! KIO M!"CHIEE$F$ N@ONITIE!A %Q@DIQCU@ @%#$N"?!V MN@%. A " ! .
  4. 4. 1. G # " ! (L )AAN $ – !"#IH@ GBI#@ M$#NIKQIE!A NI"GN"$% ! KIOE@Q!BELV N@"BI#$% "!"M$QCO$%@E!IH smart-?@N# (E@O%@E!I "!"#IHL).Payflex - E#IQQI?#G@QCE@A (smart) ?@N#@ R!NHL Schlumberger, ?$#$N@A M$Q$JIE@ %$"E$%G "!"#IH KIOE@Q!BELV N@"BI#$%, N@ON@K@#L%@IHLV ?$HM@E!IP Dekart S.R.L.SCR-60, Reflex 60, Reflex 72 (Schlumberger), TOWITOKO ChipDrive - "B!#L%@#IQ!smart-?@N#, !"M$QCOGXW!I"A % $#DIQCELV #IVE$Q$F!BI"?!V O%IECAV . @K$#@X##$QC?$ "$%HI"#E$ " ?$HMCX#IN$H, ! GMN@%QAX#"A MN$FN@HHELH $KI"MIBIE!IH,N@K$#@XWIH E@ ?$HMCX#INI.w - $NF@E!O@U!A, %LM$QEAXW@A MIN"$E@Q!O@U!X ?@N# DINJ@#IQIP, %IDGW@AK@OL ?@N#-"BI#$% DINJ@#IQIP ! $KN@K@#L%@XW@A MQ@#hJELI #N@EO@?U!!. ^ - MN$UI""!EF$%LP UIE#N. $DN@ODIQIE!I (GB@"#E!?) "!"#IHL, % O@D@B! ?$#$N$F$%V$D!# $K"QGJ!%@E!I #INH!E@QCE$F$ M$QA, "K$N #N@EO@?U!P $# #INH!E@Q$%, !V"$N#!N$%?G ! N@""LQ?G iH!#IE#@H.^A – UIE#N "!"#IHL. NF@E!O@U!A, O@E!H@XW@A"A MNID%@N!#IQCE$PMIN"$E@Q!O@U!IP ?@N# DINJ@#IQIP ! !V MINID@BIP iH!#IE#@H (GB@"#E!?@H "!"#IHL).^AX - UIE#N "IN#!R!?@U!! ?QXBIP (Certificate authority). NF@E!O@U!A,$KI"MIB!%@XW@A "IN#!R!?@U!X ?QXBIP GB@"#E!?$% "!"#IHL. !"# . RGE?U!! UIE#N@ "!"#IHL ! UIE#N@ "IN#!R!?@U!! ?QXBIP%LM$QEAI# $DE@ $NF@E!O@U!A. " - R!O!BI"?$I Q!U$, !"M$QCOGXWII ?@N#G % ?@BI"#%I MQ@#hJE$F$!E"#NGHIE#@ MN! $MQ@#I #$%@N@ !Q! G"QGF!. C – G"Q$%E@A #$%@N$-DIEIJE@A ID!E!U@ (NGKQ!, QI!, D$QQ@NL,Q!#NL, ? #·B. ! #.D.), !"M$QCOGIH@A % % ?@BI"#%I "NID"#%@ MQ@#IJ@.A " x #DES (Data Encryption Standard) - #@ED@N# T!RN$%@E!A D@EELV. !HHI#N!BE@A"!"#IH@ T!RN$%@E!A " DQ!E$P ?QXB@ ! T!RNGIH$F$ KQ$?@ D@EELV 64 K!#@.nRRI?#!%E@A DQ!E@ ?QXB@ E@ "@H$H DIQI N@%E@ 56 ($D!E K!# ?@JD$F$ K@P#@!"M$QCOGI#"A % ?@BI"#%I ?$E#N$QCE$F$).RSA - "!"#IH@ T!RN$%@E!A E@ $"E$%I $#?NL#LV ?QXBIP. N!HIEAI#"A % "!"#IHI DQA"#@#!BI"?$P @G#IE#!R!?@U!! ?@N# DINJ@#IQIP.SHS (Secure Hash Standard) - #@ED@N# E@ VIT-RGE?U!X. #@ED@N# $MNIDIQAI#@QF$N!#H Secure Hash Algorithm (SHA-1), ?$#$NLP H$JI# !"M$QCO$%@#C"A DQA"$OD@E!A ""J@#$F$" MNID"#@%QIE!A EI?$#$N$P M$"QID$%@#IQCE$"#!. @?$IMNID"#@%QIE!I E$"!# E@O%@E!I $"%$& (" )*+ $*,"( +-#*( .X " " x C ySAM (Secure Application Module) – "MIU!@QCE@A ?@N#@, ?$#$N@A $KI"MIB!%@I#KIO$M@"E$"#C MN! $MIN@U!AV DIKI#$%@E!A ! ?NID!#$%@E!A.X (!Q! ?@N#@ MIN"$E@QCELV ?QXBIP) – "MIU!@QCE@A ?@N#@, ?$#$N@AMNIDE@OE@BIE@ DQA O@W!WIEE$F$ VN@EIE!A ?QXB@ (?QXBIP) D$"#GM@ $#%I#"#%IEELVQ!U "!"#IHL. [@N#@ D$"#GM@ MN!E@DQIJ!# ?$E?NI#E$HG $#%I#"#%IEE$HG Q!UG"!"#IHL ! O@W!WIE@ IF$ MIN"$E@QCELH !DIE#!R!?@U!$EELH E$HIN$H (PIN-?$D$H).A " " - EI!OHIEAIH@A, GE!?@QCE@A DQA ?@JD$P ?@N#L D%$!BE@AM$"QID$%@#IQCE$"#C DQ!E$P 8 K@P#, O@M!"L%@IH@A E@ ?@N#G O@%$D$H !OF$#$%!#IQIH.DSSSCT File : cdex_pg.doc Ref : CDEXPPG0000 Revision:2.0 4 / 49 Copyright © Dekart S.R.L (www.dekart.com) - 2001 This document shall not be disclosed to a third party without prior written consent of Dekart S.R.L. !?@?@A B@"#C D@EE$F$ D$?GHIE#@ EI H$JI# KL#C %$"MN$!O%IDIE@ % ?@?$P KL #$ E! KLQ$ R$NHI ! ?@?!H! KL, #$ E! KLQ$ "NID"#%@H! KIO M!"CHIEE$F$ N@ONITIE!A %Q@DIQCU@ @%#$N"?!V MN@%. A " ! .
  5. 5. BIN (Bank Identification Number) – !DIE#!R!?@U!$EELP E$HIN iH!#IE#@ (8 U!RN),"$"#@%QIEELP % "$$#%I#"#%!! "$ "#@ED@N#$H ISO.PIN (Personal Identification Number) – MIN"$E@QCELP !DIE#!R!?@U!$EELP E$HINM$QCO$%@#IQA ($# 4 D$ 8 DI"A#!BELV U!RN). Q@DIQIU ?@N#L $KAO@E DINJ@#C "%$P PIN- ?$D % "I?NI#I.PAN (Primary Account Number) – E$HIN ?@N#L (19 U!RN), MIN%LI 8 U!RN ?$#$N$F$"$$#%I#"#%GX# BIN.ID (Identifier) – !DIE#!R!?@#$N (8 U!RN), $MNIDIQAXW!P !HIE@ R@PQ$%, % ?$#$NLVO@M!"L%@X#"A RSA ?QXB! MN$UI""!EF$%$F$ UIE#N@ ! iH!#IE#@, O@MN$" E@"IN#!R!?@U!X ! "IN#!R!?@#, @ #@?JI PAN-?$DL iH!#IE#@. $%M@D@I# " BIN.X z "X z – %EG#NIEE!I ?QXB!, ?$#$NLI VN@EA#"A E@ ?@N#I D$"#GM@ !MN!HIEAX#"A DQA «$#?NL#!A» N@OQ!BELV #IVE$Q$F!BI"?!V MN!Q$JIE!P "!"#IHL,MN!BIH % K$QCT!E"#%I "QGB@I% $E! "QGJ@# DQA @?#!%!O@U!! DNGF!V ("I?NI#ELV)?QXBIP "!"#IHL. # x C z - "N@"MLQIE!I" ?QXB@. "M$QCOGI#"A DQA!ED!%!DG@Q!O@U!! %EG#NIEE!V ?QXBIP ?@N# DINJ@#IQIP. z - "I?NI#ELP ?QXB "!HHI#N!BE$P "!"#IHL T!RN$%@E!A, !"M$QCOGIHLP% "!"#IHI DQA D!%IN"!R!?@U!! ?QXBIP ?@N# DINJ@#IQIP. - $#?NL#@A B@"#C ?QXB@ "!"#IHL T!RN$%@E!A RSA.w - $#?NL#@A B@"#C ?QXB@ RSA. $JI# KL#C N@%E$P 3 Q!K$ BI#%hN#$HGB!"QG ZINH@ (Fermat 4 = 2^2^4+1 = 65537). i?"M$EIE#@ N@%E@ 3.A x - D%$!BE@A M$"QID$%@#IQCE$"#C, M$QGB@IH@A "MIU!@QCELH!?N!M#$FN@R!BI"?!H! HI#$D@H! ! "QGJ@W@A DQA MN$%IN?! D$"#$%INE$"#! EI?$#$N$PM$"QID$%@#IQCE$"#! D@EELV.A # - M$"QID$%@#IQCE$"#C D%$!BELV D@EELV, ?$#$N@A"$OD@h#"A "MIU!@QCELH! HIV@E!OH@H! % ?@N#@V ! #INH!E@Q@V DQA H$D!R!?@U!!"$$KWIE!P " UIQCX !ED!%!DG@Q!O@U!! MN$#$?$Q@ $KHIE@ $# $DE$F$ "I@E"@ ? DNGF$HGDSSSCT File : cdex_pg.doc Ref : CDEXPPG0000 Revision:2.0 5 / 49 Copyright © Dekart S.R.L (www.dekart.com) - 2001 This document shall not be disclosed to a third party without prior written consent of Dekart S.R.L. !?@?@A B@"#C D@EE$F$ D$?GHIE#@ EI H$JI# KL#C %$"MN$!O%IDIE@ % ?@?$P KL #$ E! KLQ$ R$NHI ! ?@?!H! KL, #$ E! KLQ$ "NID"#%@H! KIO M!"CHIEE$F$ N@ONITIE!A %Q@DIQCU@ @%#$N"?!V MN@%. A " ! .
  6. 6. 2. J ! cdexp.dll $DGQC cdexp.dll MNIDE@OE@BIE DQA M$QGBIE!A (!O%QIBIE!A) D@EELV !O R@PQ$%?@N# M$QCO$%@#IQA, MN$%IN?! !V UIQ$"#E$"#! ! @G#IE#!BE$"#!, #.I. %LM$QEIE!AN@"T!NIEE$P i?"MIN#!OL ?@N# M$QCO$%@#IQA. $D$KE@A i?"MIN#!O@ EI$KV$D!H@ MN!N@""QID$%@E!! "K$PELV !Q! BNIO%LB@PELV "!#G@U!P, MN$!O$TIDT!V % MN$UI""Ii?"MQG@#@U!! . "%AO! " i#!H H$DGQC M$O%$QAI# M$QGB@#C H@?"!H@QCE$M$QEGX !ER$NH@U!X !O ?@N#L % "$$#%I#"#%!! " MNID}A%QIEELH! M$QE$H$B!AH!. .3. E { # !E@H!BI"?! O@FNGJ@IH@A K!KQ!$#I?@ cdexp.dll %?QXB@I# % "IKA "QIDGXW!IRGE?U!!: I ! " smart- E ! " J ! "| " J !# # " # "/ $"#G- $QCO$ SAM #"! # x C #"! # x C M@ %@#IQA1 CDexpCheckAccessCard + - - -2 CDexpConnectSAMCard - + - - 163 CDexpConnectUserCard - - + - 16 - + - 2/4 CDexpGetChallenge - + 3 - + - 2/5 CDexpSelectFileInCard - + 3 + 1,6 CDexpStaticAuth - + - 2/ - + 3 - + + 2/7 CDexpExternalAuth 3 - + + 2/8 CDexpInternalAuth 3 - + - 2/9 CDexpReadFileRecord - + 3, 510 CDexpUpdateFileRecord - + + 2/3, 7, 8, 5 + 1, 6 + 2,11 CDexpDebitTransaction + 3, 7, 8 + 1, 6 + 2,12 CDexpCreditTransaction + 3, 7, 8 CDexpUpdatetMaxAmoun - + + 213 t + 1,14 CDexpGetCardData - + 2DSSSCT File : cdex_pg.doc Ref : CDEXPPG0000 Revision:2.0 6 / 49 Copyright © Dekart S.R.L (www.dekart.com) - 2001 This document shall not be disclosed to a third party without prior written consent of Dekart S.R.L. !?@?@A B@"#C D@EE$F$ D$?GHIE#@ EI H$JI# KL#C %$"MN$!O%IDIE@ % ?@?$P KL #$ E! KLQ$ R$NHI ! ?@?!H! KL, #$ E! KLQ$ "NID"#%@H! KIO M!"CHIEE$F$ N@ONITIE!A %Q@DIQCU@ @%#$N"?!V MN@%. A " ! .
  7. 7. + 1,15 CDexpGetPurseData - + 216 CDexpCloseCard $FG# %LM$QEA#C"A M$"QI QXK$P !O %LTIMINIB!"QIEELV RGE?U!P17 CDexpGetCardStatZGE?U!!, %V$DAW!I % H$DGQC cdexp.dll, NI@Q!O$%@EL E@ AOL?@V MN$FN@HH!N$%@E!A , C++. I$KV$D!H$I $K$NGD$%@E!I:• [$HMCX#IN IBM PC (486 ! %LTI), !HIXW!P "%$K$DELI M$"QID$%@#IQCELI M$N#L;• Smart-?@N#L: ?@N#@ D$"#GM@ iH!#IE#@, ?@N#@ M$QCO$%@#IQA, SAM-?@N#@;• B!#L%@#IQC smart-?@N# $DE$F$ !O "QIDGXW!V #!M$%: SCR-60, Reflex 60, Reflex 72 (Schlumberger), TOWITOKO ChipDrive. I$KV$D!H$I MN$FN@HHE$I $KI"MIBIE!I:• MIN@U!$EE@A "!"#IH@ MS Windows 9x, NT;• CT API DQA "B!#L%@#IQIP TOWITOKO ChipDrive ! Schlumberger Reflex 72;• Z@PQ #NI#CIP ?QXBIP iH!#IE#@ ID_iH!#IE#@.SE3;• Z@PQ $#?NL#$F$ ?QXB@ ID_ / [.KEY. "#@E$%?@ H$DGQA cdexp.dll $"GWI"#%QAI#"A MN$"#LH IF$ ?$M!N$%@E!IH %"$$#%I#"#%GXW!P ?@#@Q$F (SYSTEM, SYSTEM32) "!"#IHL Windows.DSSSCT File : cdex_pg.doc Ref : CDEXPPG0000 Revision:2.0 7 / 49 Copyright © Dekart S.R.L (www.dekart.com) - 2001 This document shall not be disclosed to a third party without prior written consent of Dekart S.R.L. !?@?@A B@"#C D@EE$F$ D$?GHIE#@ EI H$JI# KL#C %$"MN$!O%IDIE@ % ?@?$P KL #$ E! KLQ$ R$NHI ! ?@?!H! KL, #$ E! KLQ$ "NID"#%@H! KIO M!"CHIEE$F$ N@ONITIE!A %Q@DIQCU@ @%#$N"?!V MN@%. A " ! .
  8. 8. 3. E x C cdexp.dll 3.1. ] C CDexpCheckAccessCard."/,"# : CDexpCheckAccessCard."/#"! # : ZGE?U!A MN$%INAI# E@Q!B!I % "B!#L%@#IQI ?@N#L D$"#GM@. "Q! $E@ MN!"G#"#%GI#, #$ IP MNID}A%QAI#"A G?@O@EELP PIN-?$D ! " ?@N#L D$"#GM@ "B!#L%@I#"A Ih "IN!PELP E$HIN. ZGE?U!A #@?JI $MNIDIQAI# E@Q!B!I R@PQ@ " $#?NL#LH ?QXB$H / [ (CA_ID.KEY) !Q! " #NI#CIP FNGMM$P ?QXBIP iH!#IE#@ (ISS_ID.SE3) !, I"Q! $E $KE@NGJIE, #$ MN$!O%$D!#"A IF$ «M$D?QXBIE!I» ? H$DGQX. !"# : INID O@%INTIE!IH ?$HHGE!?@U!$EELP M$N# ("B!#L%@#IQC) $"%$K$JD@I#"A.0+*, 1 ) # # 1: I$KV$D!H$ E@Q!B!I ?@N#L D$"#GM@ ! R@PQ@ " ?QXB@H! UIE#N@ MQ@#hJE$P "!"#IHL.3 #("4 : #include "CDexp.h" int CDexpCheckAccessCard(char *Port, short ReaderType, char *IccNo, char *KeyFile, char *PIN, char *ISOcmd, char *Data, char *SW1SW2)56*$#7 $"##7 : Port – G?@O@#IQC E@ "#N$?G "$DINJ@WGX !HA ?$HHGE!?@U!$EE$F$ M$N#@ (E@MN!HIN COM1, COM2, COM3, COM4). ReaderType – UIQ$I B!"Q$, G?@OL%@XWII #!M "B!#L%@#IQA. $DDINJ!%@X#"A 4 #!M@ "B!#L%@#IQIP: Š M.M. N$!O%$D!#IQC / @O%@E!I ReaderType 1 Schlumberger / SCR 60 0 2 Schlumberger / Reflex 60 1 3 TOWITOKO / ChipDrive 2 4 Schlumberger / Reflex 72 3 KeyFile – G?@O@#IQC E@ "#N$?G, "$DINJ@WGX MG#C ! !HA R@PQ@ " ?QXB@H! / [ (CA_ID.KEY) !Q! " #NI#CIP FNGMM$P ?QXBIP iH!#IE#@ (ISS_ID.SE3). PIN – G?@O@#IQC E@ "#N$?G, "$DINJ@WGX PIN–?$D ?@N#L D$"#GM@. PIN– ?$D H$JI# "$"#$A#C $# 4 D$ 8 DI"A#!BELV U!RN.576*$#7 $"##7 : IccNo – G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDI# %$O%N@WhE "IN!PELP E$HIN ?@N#L D$"#GM@. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 33 K@P#$%. ISOcmd – G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL "$"#@%ELI B@"#! ?$H@EDL, M$D@%@IH$P E@ ?@N#G ("$FQ@"E$ ISO) - CLA||INS||P1||P2||P3. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 17 K@P#$% ("H. M. 4.3).DSSSCT File : cdex_pg.doc Ref : CDEXPPG0000 Revision:2.0 8 / 49 Copyright © Dekart S.R.L (www.dekart.com) - 2001 This document shall not be disclosed to a third party without prior written consent of Dekart S.R.L. !?@?@A B@"#C D@EE$F$ D$?GHIE#@ EI H$JI# KL#C %$"MN$!O%IDIE@ % ?@?$P KL #$ E! KLQ$ R$NHI ! ?@?!H! KL, #$ E! KLQ$ "NID"#%@H! KIO M!"CHIEE$F$ N@ONITIE!A %Q@DIQCU@ @%#$N"?!V MN@%. A " ! .
  9. 9. Data - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL D@EELI, EI$KV$D!HLI DQA %LM$QEIE!A "$$#%I#"#%GXWIP ?$H@EDL. @OHIN KGRIN@ D$QJIE KL#C D$"#@#$BELH (EI HIEII 256 K@P#$%). SW1SW2 - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL K@P#L – NIOGQC#@# %LM$QEIE!A ?$H@EDL % ?@N#I. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 12 K@P#$% ("H. M. 4.3).5*/, "8" * /#"! # : 1 – % "QGB@I G"MITE$F$ O@%INTIE!A MN$FN@HHL, !E@BI $#N!U@#IQCE$I OE@BIE!I ?$D@ $T!K?! ("H. ?$DL $T!K$? M.4.1). ,7/*," 9:#4; / ) *< " 7 (BC++ v.5.01) "H. M.4.2 3.2. ] C CDexpConnectSAMCard."/,"# : CDexpConnectSAMCard."/#"! # : ZGE?U!A MN$%INAI# E@Q!B!I % "B!#L%@#IQI SAM ?@N#L. "Q! ?@N#@ MN!"G#"#%GI#, #$ $E@ "#@E$%!#"A D$"#GME$P DQA DNGF!V RGE?U!P.0+*, 1 ) # # 1: I$KV$D!H$ E@Q!B!I SAM-?@N#L.3 #("4 : #include "CDexp.h" HANDLE CDexpConnectSAMCard (char *Port, short ReaderType)56*$#7 $"##7 : Port – G?@O@#IQC E@ "#N$?G, "$DINJ@WGX !HA ?$HHGE!?@U!$EE$F$ M$N#@ ("H. M. 3.1). ReaderType – UIQ$I B!"Q$, G?@OL%@XWII #!M "B!#L%@#IQA ("H. M. 3.1).5*/, "8" * /#"! # : HANDLE (DI"?N!M#$N, Q$F!BI"?!P E$HIN, "%AO@EELP " $#?NL#LH ?$HHGE!?@U!$EELH M$N#$H, ? ?$#$N$HG M$D?QXBhE "B!#L%@#IQC ! % ?$#$N$H E@V$D!#"A SAM-?@N#@) – MN! G"MITE$H O@%INTIE!! MN$FN@HHL, !E@BI $#N!U@#IQCE$I OE@BIE!I ?$D@ $T!K?! ("H. ?$DL $T!K$? % M.4.1) N!HIB@E!I. INID $KN@WIE!IH ? RGE?U!! CDexpConnectSAMCard EI$KV$D!H$ MNID%@N!#IQCE$ GD$"#$%IN!#C"A, B#$ ?$HHGE!?@U!$EELP M$N# EI KLQ N@EII $#?NL# DQA N@K$#L " DNGF$P ?@N#$P ("H. M.3.4).F< "# ! # 1: I$KV$D!H$ "$KQXDIE!A "#N$F$F$ "$$#%I#"#%!A #!M@ "B!#L%@#IQA (ReaderType) " NI@QCELH "B!#L%@#IQIH, M$D?QXBhEELH ? D@EE$HG M$"QID$%@#IQCE$HG M$N#G. I"$KQXDIE!I i#$F$ $FN@E!BIE!A MN!%$D!# ? EIMNID"?@OGIHLH NIOGQC#@#@H. ,7/*," 9:#4; / ) *< " 7 (BC++ v.5.01) "H. M.4.2 3.3. ] C CDexpConnectUserCard."/,"# : CDexpConnectUserCard."/#"! # : ZGE?U!A MN$%INAI# E@Q!B!I % "B!#L%@#IQI ?@N#L M$QCO$%@#IQA. "Q! ?@N#@ MN!"G#"#%GI#, #$ $E@ "#@E$%!#"A D$"#GME$P DQA DNGF!V RGE?U!P.0+*, 1 ) # # 1: I$KV$D!H$ E@Q!B!I ?@N#L M$QCO$%@#IQA.3 #("4 : #include "CDexp.h"DSSSCT File : cdex_pg.doc Ref : CDEXPPG0000 Revision:2.0 9 / 49 Copyright © Dekart S.R.L (www.dekart.com) - 2001 This document shall not be disclosed to a third party without prior written consent of Dekart S.R.L. !?@?@A B@"#C D@EE$F$ D$?GHIE#@ EI H$JI# KL#C %$"MN$!O%IDIE@ % ?@?$P KL #$ E! KLQ$ R$NHI ! ?@?!H! KL, #$ E! KLQ$ "NID"#%@H! KIO M!"CHIEE$F$ N@ONITIE!A %Q@DIQCU@ @%#$N"?!V MN@%. A " ! .
  10. 10. HANDLE CDexpConnectUserCard (char *Port, short ReaderType)56*$#7 $"##7 : Port – G?@O@#IQC E@ "#N$?G, "$DINJ@WGX !HA ?$HHGE!?@U!$EE$F$ M$N#@ ("H. M. 3.1). ReaderType – UIQ$I B!"Q$, G?@OL%@XWII #!M "B!#L%@#IQA ("H. M. 3.1).5*/, "8" * /#"! # : HANDLE (DI"?N!M#$N, Q$F!BI"?!P E$HIN, "%AO@EELP " $#?NL#LH ?$HHGE!?@U!$EELH M$N#$H, ? ?$#$N$HG M$D?QXBhE "B!#L%@#IQC ! % ?$#$N$H E@V$D!#"A ?@N#@ M$QCO$%@#IQA) – I"Q! G"MITE$I O@%INTIE!I MN$FN@HHL, !E@BI $#N!U@#IQCE$I OE@BIE!I ?$D@ $T!K?! ("H. ?$DL $T!K$? % M.4.1). N!HIB@E!I. INID $KN@WIE!IH ? RGE?U!! CDexpConnectUserCard EI$KV$D!H$ MNID%@N!#IQCE$ GD$"#$%IN!#C"A, B#$ ?$HHGE!?@U!$EELP M$N# EI KLQ N@EII $#?NL# DQA N@K$#L " DNGF$P ?@N#$P ("H. M.3.4).F< "# ! # 1: I$KV$D!H$ "$KQXDIE!A "#N$F$F$ "$$#%I#"#%!A #!M@ "B!#L%@#IQA (ReaderType) " NI@QCELH "B!#L%@#IQIH, M$D?QXBhEELH ? D@EE$HG M$"QID$%@#IQCE$HG M$N#G. I"$KQXDIE!I i#$F$ $FN@E!BIE!A MN!%$D!# ? EIMNID"?@OGIHLH NIOGQC#@#@H. ,7/*," 9:#4; / ) *< " 7 (BC++ v.5.01) "H. M.4.2 3.4. ] C CDexpCloseCard."/,"# : CDexpCloseCard."/#"! # : ZGE?U!A O@%INT@I# N@K$#G " ?@N#$P, %"#@%QIEE$P % "B!#L%@#IQC, O@?NL%@I# ! $"%$K$JD@I# M$N#.0+*, 1 ) # # 1: I$KV$D!H$ E@Q!B!I QXK$P !O %LTIMINIB!"QIEELV smart-?@N#.3 #("4 : #include "CDexp.h" BOOL CDexpCloseCard (HANDLE hcd)56*$#7 $"##7 : hcd – Q$F!BI"?!P E$HIN (HANDLE), "%AO@EELP " $#?NL#LH ?$HHGE!?@U!$EELH M$N#$H, ? ?$#$N$HG M$D?QXBhE "B!#L%@#IQC ! % ?$#$N$H E@V$D!#"A ?@N#@.5*/, "8" * /#"! # : True, I"Q! G"MITE$I O@%INTIE!I MN$FN@HHL, !E@BI – False. ,7/*," 9:#4; / ) *< " 7 (BC++ v.5.01) "H. M.4.2 3.5. ] C CDexpGetCardStat."/,"# : CDexpGetCardStat."/#"! # : "$$#%I#"#%!! "$ OE@BIE!IH ?$D@ $T!K?! RGE?U!A %LD@I# N@"T!NIEE$I "$$KWIE!I $K $T!K?I. @EE@A RGE?U!A H$JI# KL#C !"M$QCO$%@E@ M$"QI QXK$P RGE?U!! H$DGQA DQA D!@FE$"#!?! %LM$QEIE!A $MIN@U!! % ?@N#I.0+*, 1 ) # # 1: I$KV$D!H$ E@Q!B!I QXK$P !O %LTIMINIB!"QIEELV smart-?@N#.3 #("4 : #include "CDexp.h"DSSSCT File : cdex_pg.doc Ref : CDEXPPG0000 Revision:2.0 10 / 49 Copyright © Dekart S.R.L (www.dekart.com) - 2001 This document shall not be disclosed to a third party without prior written consent of Dekart S.R.L. !?@?@A B@"#C D@EE$F$ D$?GHIE#@ EI H$JI# KL#C %$"MN$!O%IDIE@ % ?@?$P KL #$ E! KLQ$ R$NHI ! ?@?!H! KL, #$ E! KLQ$ "NID"#%@H! KIO M!"CHIEE$F$ N@ONITIE!A %Q@DIQCU@ @%#$N"?!V MN@%. A " ! .
  11. 11. void CDexpGetCardStat (char *msgbuf)56*$#7 $"##7 : $#"G#"#%GX#.576*$#7 $"##7 : msgbuf – G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDI# %$O%N@WIE$ "$$KWIE!I $K $T!K?I. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 80 K@P#.F< "# ! # 1: ZGE?U!A D$QJE@ %LOL%@#C"A EIM$"NID"#%IEE$ O@ RGE?U!IP, %LO%@%TIP $T!K?G % ?@N#I, !E@BI %$O%N@W@IH$I "$$KWIE!I KGDI# "$DINJ@#C «HG"$N». ,7/*," 9:#4; / ) *< " 7 (BC++ v.5.01) "H. M.4.2 3.6. ] C CDexpGetChallenge."/,"# : CDexpGetChallenge."/#"! # : ZGE?U!A M$QGB@I# "QGB@PE$I B!"Q$, R$NH!NGIH$I ?@N#$P, ! O@M!"L%@I# IF$ % KGRIN. @?JI H$JI# KL#C !"M$QCO$%@E@ DQA $MNIDIQIE!A E@Q!B!A ?@N#L % "B!#L%@#IQI.0+*, 1 ) # # 1: I$KV$D!H$ E@Q!B!I SAM-?@N#L !Q! ?@N#L M$QCO$%@#IQA. INID $KN@WIE!IH ? RGE?U!! CDexpGetChallenge EI$KV$D!H$ MNID%@N!#IQCE$ %LO%@#C RGE?U!X CDexpConnectUserCard !Q! CDexpConnectSAMCard (I"Q! i#$ EI KLQ$ %LM$QEIE$ N@EII).3 #("4 : #include "CDexp.h" BOOL CDexpGetChallenge (HANDLE hcd, char *buf, char *ISOcmd, char *Data, char *SW1SW2)56*$#7 $"##7 : hcd – Q$F!BI"?!P E$HIN (HANDLE), "%AO@EELP " $#?NL#LH ?$HHGE!?@U!$EELH M$N#$H, ? ?$#$N$HG M$D?QXBhE "B!#L%@#IQC ! % ?$#$N$H E@V$D!#"A ?@N#@.576*$#7 $"##7 : buf - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H RGE?U!A %$O%N@W@I# "QGB@PEGX M$"QID$%@#IQCE$"#C % R$NH@#I ASCII % TI"#E@DU@#IN!BE$H ?$DI. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 17 K@P#. ISOcmd – G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL "$"#@%ELI B@"#! ?$H@EDL, M$D@%@IH$P E@ ?@N#G ("$FQ@"E$ ISO) - CLA||INS||P1||P2||P3. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 17 K@P#$% ("H. M. 4.3). Data - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL D@EELI, EI$KV$D!HLI DQA %LM$QEIE!A "$$#%I#"#%GXWIP ?$H@EDL. @OHIN KGRIN@ D$QJIE KL#C D$"#@#$BELH (EI HIEII 256 K@P#$%). SW1SW2 - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL K@P#L – NIOGQC#@# %LM$QEIE!A ?$H@EDL % ?@N#I. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 12 K@P#$% ("H. M. 4.3).5*/, "8" * /#"! # : True, I"Q! G"MITE$I O@%INTIE!I MN$FN@HHL, !E@BI – False. DE$P !O MN!B!E M$A%QIE!A NIOGQC#@#@ False H$JI# KL#C $#"G#"#%!I ?@N#L % "B!#L%@#IQI. ,7/*," 9:#4; / ) *< " 7 (BC++ v.5.01) "H. M.4.2DSSSCT File : cdex_pg.doc Ref : CDEXPPG0000 Revision:2.0 11 / 49 Copyright © Dekart S.R.L (www.dekart.com) - 2001 This document shall not be disclosed to a third party without prior written consent of Dekart S.R.L. !?@?@A B@"#C D@EE$F$ D$?GHIE#@ EI H$JI# KL#C %$"MN$!O%IDIE@ % ?@?$P KL #$ E! KLQ$ R$NHI ! ?@?!H! KL, #$ E! KLQ$ "NID"#%@H! KIO M!"CHIEE$F$ N@ONITIE!A %Q@DIQCU@ @%#$N"?!V MN@%. A " ! .
  12. 12. 3.7. ] C CDexpSelectFileInCard."/,"# : CDexpSelectFileInCard."/#"! # : ZGE?U!A MN$%INAI# E@Q!B!I % ?@N#I G?@O@EE$F$ R@PQ@. "Q! D@EELP R@PQ MN!"G#"#%GI#, #$ $E DIQ@I#"A #I?GW!H.0+*, 1 ) # # 1: I$KV$D!H$ E@Q!B!I SAM-?@N#L !Q! ?@N#L M$QCO$%@#IQA. INID $KN@WIE!IH ? RGE?U!! CDexpSelectFileInCard EI$KV$D!H$ MNID%@N!#IQCE$ %LO%@#C RGE?U!X CDexpConnectUserCard !Q! CDexpConnectSAMCard (I"Q! i#$ EI KLQ$ %LM$QEIE$ N@EII).3 #("4 : #include "CDexp.h" BOOL CDexpSelectFileInCard (HANDLE hcd, char *FID, char *ISOcmd, char *Data, char *SW1SW2)56*$#7 $"##7 : hcd – Q$F!BI"?!P E$HIN (HANDLE), "%AO@EELP " $#?NL#LH ?$HHGE!?@U!$EELH M$N#$H, ? ?$#$N$HG M$D?QXBhE "B!#L%@#IQC ! % ?$#$N$H E@V$D!#"A ?@N#@. FID – G?@O@#IQC E@ "#N$?G, "$DINJ@WGX !DIE#!R!?@#$N (!HA) R@PQ@.576*$#7 $"##7 : ISOcmd – G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL "$"#@%ELI B@"#! ?$H@EDL, M$D@%@IH$P E@ ?@N#G ("$FQ@"E$ ISO) - CLA||INS||P1||P2||P3. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 17 K@P#$% ("H. M. 4.3). Data - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL D@EELI, EI$KV$D!HLI DQA %LM$QEIE!A "$$#%I#"#%GXWIP ?$H@EDL. @OHIN KGRIN@ D$QJIE KL#C D$"#@#$BELH (EI HIEII 256 K@P#$%). SW1SW2 - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL K@P#L – NIOGQC#@# %LM$QEIE!A ?$H@EDL % ?@N#I. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 12 K@P#$% ("H. M. 4.3).5*/, "8" * /#"! # : "QGB@I G"MITE$F$ O@%INTIE!A MN$FN@HHL - True, !E@BI False, MN! i#$H N@"T!NIEE$I "$$KWIE!I $K $T!K?I ?@N#L H$JE$ M$QGB!#C " M$H$WCX RGE?U!! CDexpGetCardStat. ,7/*," 9:#4; / ) *< " 7 (BC++ v.5.01) "H. M.4.2 3.8. ] C CDexpReadFileRecord."/,"# : CDexpReadFileRecord."/#"! # : ZGE?U!A CDexpReadFileRecord MN$%INAI# E@Q!B!I % ?@N#I G?@O@EE$F$ R@PQ@. "Q! D@EELP R@PQ MN!"G#"#%GI#, #$ MN$!O%$D!#"A B#IE!I !O EIF$ %LKN@EE$P O@M!"!.0+*, 1 ) # # 1: I$KV$D!H$ E@Q!B!I SAM-?@N#L !Q! ?@N#L M$QCO$%@#IQA. INID $KN@WIE!IH ? RGE?U!! CDexpReadFileRecord EI$KV$D!H$ MNID%@N!#IQCE$ %LO%@#C RGE?U!X CDexpConnectUserCard !Q! CDexpConnectSAMCard (I"Q! i#$ EI KLQ$ %LM$QEIE$ N@EII), @ #@?JIDSSSCT File : cdex_pg.doc Ref : CDEXPPG0000 Revision:2.0 12 / 49 Copyright © Dekart S.R.L (www.dekart.com) - 2001 This document shall not be disclosed to a third party without prior written consent of Dekart S.R.L. !?@?@A B@"#C D@EE$F$ D$?GHIE#@ EI H$JI# KL#C %$"MN$!O%IDIE@ % ?@?$P KL #$ E! KLQ$ R$NHI ! ?@?!H! KL, #$ E! KLQ$ "NID"#%@H! KIO M!"CHIEE$F$ N@ONITIE!A %Q@DIQCU@ @%#$N"?!V MN@%. A " ! .
  13. 13. %LKN@#C "$$#%I#"#%GXW!P GN$%IEC % !IN@NV!! R@PQ$% " M$H$WCX RGE?U!! CDexpSelectFileInCard.3 #("4 : #include "CDexp.h" BOOL CDexpReadFileRecord (HANDLE hcd, short rcNo, short len, char *buf, char *ISOcmd, char *Data, char *SW1SW2)56*$#7 $"##7 : hcd – Q$F!BI"?!P E$HIN (HANDLE), "%AO@EELP " $#?NL#LH ?$HHGE!?@U!$EELH M$N#$H, ? ?$#$N$HG M$D?QXBhE "B!#L%@#IQC ! % ?$#$N$H E@V$D!#"A ?@N#@. rcNo – E$HIN O@M!"! DQA B#IE!A, UIQ$I B!"Q$. N!HIB@E!I: EGHIN@U!A E@B!E@I#"A " 1. len – DQ!E@ O@M!"! % K@P#@V, UIQ$I B!"Q$. buf – G?@O@#IQC E@ KGRIN ("#N$?@), % ?$#$N$H KGDI# %$O%N@WIE@ MN$B!#@EE@A O@M!"C !O R@PQ@. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 2·len + 1.576*$#7 $"##7 : ISOcmd – G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL "$"#@%ELI B@"#! ?$H@EDL, M$D@%@IH$P E@ ?@N#G ("$FQ@"E$ ISO) - CLA||INS||P1||P2||P3. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 17 K@P#$% ("H. M. 4.3). Data - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL D@EELI, EI$KV$D!HLI DQA %LM$QEIE!A "$$#%I#"#%GXWIP ?$H@EDL. @OHIN KGRIN@ D$QJIE KL#C D$"#@#$BELH (EI HIEII 256 K@P#$%). SW1SW2 - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL K@P#L – NIOGQC#@# %LM$QEIE!A ?$H@EDL % ?@N#I. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 12 K@P#$% ("H. M. 4.3).5*/, "8" * /#"! # : True, I"Q! G"MITE$I O@%INTIE!I MN$FN@HHL, !E@BI False. "QGB@I False, N@"T!NIEE$I "$$KWIE!I $K $T!K?I ?@N#L H$JE$ M$QGB!#C " M$H$WCX RGE?U!! CDexpGetCardStat.F< "# ! # 1: $HIN O@M!"C (rcNo) ! DQ!E@ O@M!"! (len) EI H$FG# KL#C K$QCTI 255. [N$HI #$F$, i#! %IQ!B!EL D$QJEL #$BE$ "$$#%I#"#%$%@#C "#NG?#GNI %LKN@EE$F$ R@PQ@. ,7/*," 9:#4; / ) *< " 7 (BC++ v.5.01) "H. M.4.2 3.9. ] C CDexpUpdateFileRecord."/,"# : CDexpUpdateFileRecord."/#"! # : ZGE?U!A CDexpUpdateFileRecord MN$%INAI# E@Q!B!I % ?@N#I G?@O@EE$F$ R@PQ@. "Q! D@EELP R@PQ MN!"G#"#%GI#, #$ MN$!O%$D!#"A O@HIE@ %LKN@EE$P O@M!"!.0+*, 1 ) # # 1: I$KV$D!H$ E@Q!B!I SAM-?@N#L !Q! ?@N#L M$QCO$%@#IQA. INID $KN@WIE!IH ? RGE?U!! CDexpUpdateFileRecord EI$KV$D!H$ MNID%@N!#IQCE$ %LO%@#C RGE?U!X CDexpConnectUserCard !Q! CDexpConnectSAMCard (I"Q! i#$ EI KLQ$ %LM$QEIE$ N@EII), @ #@?JI %LKN@#C "$$#%I#"#%GXW!P GN$%IEC % !IN@NV!! R@PQ$% " M$H$WCX RGE?U!! CDexpSelectFileInCard ! MNID}A%!#C "$$#%I#"#%GXW!PDSSSCT File : cdex_pg.doc Ref : CDEXPPG0000 Revision:2.0 13 / 49 Copyright © Dekart S.R.L (www.dekart.com) - 2001 This document shall not be disclosed to a third party without prior written consent of Dekart S.R.L. !?@?@A B@"#C D@EE$F$ D$?GHIE#@ EI H$JI# KL#C %$"MN$!O%IDIE@ % ?@?$P KL #$ E! KLQ$ R$NHI ! ?@?!H! KL, #$ E! KLQ$ "NID"#%@H! KIO M!"CHIEE$F$ N@ONITIE!A %Q@DIQCU@ @%#$N"?!V MN@%. A " ! .
  14. 14. ?QXB. @MN!HIN, DQA O@HIEL O@M!"! % R@PQI “8400” #NIKGI#"A %LM$QE!#C %EITEXX ! %EG#NIEEXX @G#IE#!R!?@U!X (RGE?U!! CDexpExternalAuth ! CDexpInternalAuth).3 #("4 : #include "CDexp.h" int CDexpUpdateFileRecord (HANDLE hcd, short rcNo, short len, char *buf, char *ISOcmd, char *Data, char *SW1SW2)56*$#7 $"##7 : hcd – Q$F!BI"?!P E$HIN (HANDLE), "%AO@EELP " $#?NL#LH ?$HHGE!?@U!$EELH M$N#$H, ? ?$#$N$HG M$D?QXBhE "B!#L%@#IQC ! % ?$#$N$H E@V$D!#"A ?@N#@. rcNo – E$HIN O@M!"! DQA B#IE!A, UIQ$I B!"Q$. N!HIB@E!I: EGHIN@U!A E@B!E@I#"A " 1. len – DQ!E@ O@M!"! % K@P#@V, UIQ$I B!"Q$. buf – G?@O@#IQC E@ KGRIN ("#N$?@), % ?$#$N$H E@V$D!#"A O@M!"C DQA O@HIEL (% R$NH@#I ASCII).576*$#7 $"##7 : ISOcmd – G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL "$"#@%ELI B@"#! ?$H@EDL, M$D@%@IH$P E@ ?@N#G ("$FQ@"E$ ISO) - CLA||INS||P1||P2||P3. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 17 K@P#$% ("H. M. 4.3). Data - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL D@EELI, EI$KV$D!HLI DQA %LM$QEIE!A "$$#%I#"#%GXWIP ?$H@EDL. @OHIN KGRIN@ D$QJIE KL#C D$"#@#$BELH (EI HIEII 256 K@P#$%). SW1SW2 - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL K@P#L – NIOGQC#@# %LM$QEIE!A ?$H@EDL % ?@N#I. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 12 K@P#$% ("H. M. 4.3).5*/, "8" * /#"! # : 1, I"Q! G"MITE$I O@%INTIE!I MN$FN@HHL, !E@BI 0 ($T!K?@ ?@N#L) !Q! $#N!U@#IQCE$I OE@BIE!I ?$D@ $T!K?! ("H. ?$DL $T!K$?). "QGB@I 0 N@"T!NIEE$I "$$KWIE!I $K $T!K?I ?@N#L H$JE$ M$QGB!#C " M$H$WCX RGE?U!! CDexpGetCardStat.F< "# ! # 1: $HIN O@M!"C (rcNo) ! DQ!E@ O@M!"! (len) EI H$FG# KL#C K$QCTI 255. [N$HI #$F$, i#! %IQ!B!EL D$QJEL #$BE$ "$$#%I#"#%$%@#C "#NG?#GNI %LKN@EE$F$ R@PQ@. ,7/*," 9:#4; / ) *< " 7 (BC++ v.5.01) "H. M.4.2 3.10. ] C CDexpStaticAuth."/,"# : CDexpStaticAuth."/#"! # : ZGE?U!A CDexpStaticAuth %LM$QEAI# "#@#!BI"?GX @G#IE#!R!?@U!X ?@N#L, ?$#$N@A %?QXB@I# MN$%IN?G %INE$"#! "#@#!BI"?!V D@EELV E@ ?@N#I, MN!E@DQIJE$"#C ?@N#L D@EE$P "!"#IHI ! iH!#IE#G. @EE@A MN$%IN?@ A%QAI#"A «"!QCE$P», #.?., M$ "G#!, $"GWI"#%QAI#"A MN$%IN?@ U!RN$%$P M$DM!"!.0+*, 1 ) # # 1: I$KV$D!H$ E@Q!B!I ?@N#L M$QCO$%@#IQA !Q! SAM-?@N#L. INID $KN@WIE!IH ? RGE?U!! CDexpStaticAuth EI$KV$D!H$ MNID%@N!#IQCE$ «M$D?QXB!#C» R@PQ " ?QXB@H! / [ (RGE?U!ADSSSCT File : cdex_pg.doc Ref : CDEXPPG0000 Revision:2.0 14 / 49 Copyright © Dekart S.R.L (www.dekart.com) - 2001 This document shall not be disclosed to a third party without prior written consent of Dekart S.R.L. !?@?@A B@"#C D@EE$F$ D$?GHIE#@ EI H$JI# KL#C %$"MN$!O%IDIE@ % ?@?$P KL #$ E! KLQ$ R$NHI ! ?@?!H! KL, #$ E! KLQ$ "NID"#%@H! KIO M!"CHIEE$F$ N@ONITIE!A %Q@DIQCU@ @%#$N"?!V MN@%. A " ! .
  15. 15. CdexpCheckAccessCard ! R@PQ ?QXBIP CA_ID.KEY) ! %LO%@#C RGE?U!X CDexpConnectUserCard !Q! CDexpConnectSAMCard (I"Q! i#$ EI KLQ$ %LM$QEIE$ N@EII).3 #("4 : #include "CDexp.h" int CDexpStaticAuth (HANDLE hcd, char *ISOcmd, char *Data, char *SW1SW2)56*$#7 $"##7 : hcd – Q$F!BI"?!P E$HIN (HANDLE), "%AO@EELP " $#?NL#LH ?$HHGE!?@U!$EELH M$N#$H, ? ?$#$N$HG M$D?QXBhE "B!#L%@#IQC ! % ?$#$N$H E@V$D!#"A ?@N#@.576*$#7 $"##7 : ISOcmd – G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL "$"#@%ELI B@"#! ?$H@EDL, M$D@%@IH$P E@ ?@N#G ("$FQ@"E$ ISO) - CLA||INS||P1||P2||P3. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 17 K@P#$% ("H. M. 4.3). Data - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL D@EELI, EI$KV$D!HLI DQA %LM$QEIE!A "$$#%I#"#%GXWIP ?$H@EDL. @OHIN KGRIN@ D$QJIE KL#C D$"#@#$BELH (EI HIEII 256 K@P#$%). SW1SW2 - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL K@P#L – NIOGQC#@# %LM$QEIE!A ?$H@EDL % ?@N#I. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 12 K@P#$% ("H. M. 4.3).5*/, "8" * /#"! # : 1 - G"MITE$I O@%INTIE!I MN$FN@HHL; 0 - $T!K?@ ?@N#L (N@"T!NIEE$I "$$KWIE!I $K $T!K?I ?@N#L H$JE$ M$QGB!#C " M$H$WCX RGE?U!! CDexpGetCardStat); $#N!U@#IQCE$I OE@BIE!I ?$D@ $T!K?! ("H. ?$DL $T!K$? % M.4.1). ,7/*," 9:#4; / ) *< " 7 (BC++ v.5.01) "H. M.4.2 3.11. ] C CDexpExternalAuth."/,"# : CDexpExternalAuth."/#"! # : ZGE?U!A CDexpExternalAuth %LM$QEAI# %EITEXX @G#IE#!R!?@U!X, ?$#$N@A $OE@B@I#, B#$ ?@N#@ M$QCO$%@#IQA MN$%INAI#, A%QAI#"A Q! ?$NNI?#E$P SAM ?@N#@. G#IE#!R!?@U!A MNID"#@%QAI# "$K$P MN$%IN?G %INE$"#! ?QXBIP % SAM H$DGQI. E@ A%QAI#"A MN$%IN?$P MAC OE@BIE!A M$QGBIEE$F$ MN! M$H$W! @QF$N!#H@ DES. n#@ MN$%IN?@ A%QAI#"A K$QII "Q@K$P, BIH MN$%IN?@, %LM$QEAIH@A RGE?U!IP CDexpStaticAuth.0+*, 1 ) # # 1: I$KV$D!H$ E@Q!B!I SAM-?@N#L ! ?@N#L M$QCO$%@#IQA. INID $KN@WIE!IH ? RGE?U!! CDexpExternalAuth EI$KV$D!H$ MNID%@N!#IQCE$ %LO%@#C RGE?U!! CDexpConnectUserCard ! CDexpConnectSAMCard (I"Q! i#$ EI KLQ$ %LM$QEIE$ N@EII).3 #("4 : #include "CDexp.h" BOOL CDexpExternalAuth (HANDLE hcd_user, HANDLE hcd_SAM, char *ISOcmd, char *Data, char *SW1SW2)56*$#7 $"##7 :DSSSCT File : cdex_pg.doc Ref : CDEXPPG0000 Revision:2.0 15 / 49 Copyright © Dekart S.R.L (www.dekart.com) - 2001 This document shall not be disclosed to a third party without prior written consent of Dekart S.R.L. !?@?@A B@"#C D@EE$F$ D$?GHIE#@ EI H$JI# KL#C %$"MN$!O%IDIE@ % ?@?$P KL #$ E! KLQ$ R$NHI ! ?@?!H! KL, #$ E! KLQ$ "NID"#%@H! KIO M!"CHIEE$F$ N@ONITIE!A %Q@DIQCU@ @%#$N"?!V MN@%. A " ! .
  16. 16. hcd_user – Q$F!BI"?!P E$HIN (HANDLE), "%AO@EELP " $#?NL#LH ?$HHGE!?@U!$EELH M$N#$H, ? ?$#$N$HG M$D?QXBhE "B!#L%@#IQC ! % ?$#$N$H E@V$D!#"A ?@N#@ M$QCO$%@#IQA. hcd_ SAM – Q$F!BI"?!P E$HIN (HANDLE), "%AO@EELP " $#?NL#LH ?$HHGE!?@U!$EELH M$N#$H, ? ?$#$N$HG M$D?QXBhE "B!#L%@#IQC ! % ?$#$N$H E@V$D!#"A SAM-?@N#@.576*$#7 $"##7 : ISOcmd – G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL "$"#@%ELI B@"#! ?$H@EDL, M$D@%@IH$P E@ ?@N#G ("$FQ@"E$ ISO) - CLA||INS||P1||P2||P3. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 17 K@P#$% ("H. M. 4.3). Data - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL D@EELI, EI$KV$D!HLI DQA %LM$QEIE!A "$$#%I#"#%GXWIP ?$H@EDL. @OHIN KGRIN@ D$QJIE KL#C D$"#@#$BELH (EI HIEII 256 K@P#$%). SW1SW2 - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL K@P#L – NIOGQC#@# %LM$QEIE!A ?$H@EDL % ?@N#I. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 12 K@P#$% ("H. M. 4.3).5*/, "8" * /#"! # : True, I"Q! G"MITE$I O@%INTIE!I MN$FN@HHL, !E@BI False. "QGB@I False, N@"T!NIEE$I "$$KWIE!I $K $T!K?I ?@N#L H$JE$ M$QGB!#C " M$H$WCX RGE?U!! CDexpGetCardStat.F< "# ! # 1: "Q! ?QXB! SAM ?@N#L EI "$$#%I#"#%GX# ?QXB@H ?@N#L M$QCO$%@#IQA, #$ GHIECT@I#"A "Bh#B!? M$ML#$? "$$#%I#"#%GXWIF$ ?QXB@ % ?@N#I M$QCO$%@#IQA. N! !"BINM@E!! %"IV ($KLBE$ 3-V) M$ML#$? "$$#%I#"#%GXW!P ?QXB KQ$?!NGI#"A. "Q! @G#IE#!R!?@U!A MN$V$D!# G"MITE$, #$ "Bh#B!? M$ML#$? "$$#%I#"#%GXWIF$ ?QXB@ G"#@E@%Q!%@I#"A % H@?"!H@QCE$I OE@BIE!I ($KLBE$ 3). ,7/*," 9:#4; / ) *< " 7 (BC++ v.5.01) "H. M.4.2 3.12. ] C CDexpInternalAuth."/,"# : CDexpInternalAuth."/#"! # : ZGE?U!A CDexpInternalAuth %LM$QEAI# %EG#NIEEXX @G#IE#!R!?@U!X, ?$#$N@A $OE@B@I#, B#$ SAM ?@N#@ MN$%INAI#, A%QAI#"A Q! ?$NNI?#E$P ?@N#@ M$QCO$%@#IQA. G#IE#!R!?@U!A MNID"#@%QAI# "$K$P MN$%IN?G %INE$"#! ?QXBIP ?@N#L M$QCO$%@#IQA. E@ A%QAI#"A MN$%IN?$P MAC OE@BIE!A, M$QGBIEE$F$ MN! M$H$W! @QF$N!#H@ DES. @EE@A MN$%IN?@ A%QAI#"A K$QII "Q@K$P, BIH MN$%IN?@, %LM$QEAIH@A RGE?U!IP CDexpStaticAuth.0+*, 1 ) # # 1: I$KV$D!H$ E@Q!B!I SAM-?@N#L ! ?@N#L M$QCO$%@#IQA. INID $KN@WIE!IH ? RGE?U!! CDexpInternalAuth EI$KV$D!H$ MNID%@N!#IQCE$ %LO%@#C RGE?U!! CDexpConnectUserCard ! CDexpConnectSAMCard (I"Q! i#$ EI KLQ$ %LM$QEIE$ N@EII).3 #("4 : #include "CDexp.h" BOOL InternalAuth (HANDLE hcd_user, HANDLE hcd_SAM, char *ISOcmd, char *Data, char *SW1SW2)DSSSCT File : cdex_pg.doc Ref : CDEXPPG0000 Revision:2.0 16 / 49 Copyright © Dekart S.R.L (www.dekart.com) - 2001 This document shall not be disclosed to a third party without prior written consent of Dekart S.R.L. !?@?@A B@"#C D@EE$F$ D$?GHIE#@ EI H$JI# KL#C %$"MN$!O%IDIE@ % ?@?$P KL #$ E! KLQ$ R$NHI ! ?@?!H! KL, #$ E! KLQ$ "NID"#%@H! KIO M!"CHIEE$F$ N@ONITIE!A %Q@DIQCU@ @%#$N"?!V MN@%. A " ! .
  17. 17. 56*$#7 $"##7 : hcd_user – Q$F!BI"?!P E$HIN (HANDLE), "%AO@EELP " $#?NL#LH ?$HHGE!?@U!$EELH M$N#$H, ? ?$#$N$HG M$D?QXBhE "B!#L%@#IQC ! % ?$#$N$H E@V$D!#"A ?@N#@ M$QCO$%@#IQA. hcd_ SAM – Q$F!BI"?!P E$HIN (HANDLE), "%AO@EELP " $#?NL#LH ?$HHGE!?@U!$EELH M$N#$H, ? ?$#$N$HG M$D?QXBhE "B!#L%@#IQC ! % ?$#$N$H E@V$D!#"A SAM-?@N#@.576*$#7 $"##7 : ISOcmd – G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL "$"#@%ELI B@"#! ?$H@EDL, M$D@%@IH$P E@ ?@N#G ("$FQ@"E$ ISO) - CLA||INS||P1||P2||P3. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 17 K@P#$% ("H. M. 4.3). Data - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL D@EELI, EI$KV$D!HLI DQA %LM$QEIE!A "$$#%I#"#%GXWIP ?$H@EDL. @OHIN KGRIN@ D$QJIE KL#C D$"#@#$BELH (EI HIEII 256 K@P#$%). SW1SW2 - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL K@P#L – NIOGQC#@# %LM$QEIE!A ?$H@EDL % ?@N#I. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 12 K@P#$% ("H. M. 4.3).5*/, "8" * /#"! # : True, I"Q! G"MITE$I O@%INTIE!I MN$FN@HHL, !E@BI False. "QGB@I False, N@"T!NIEE$I "$$KWIE!I $K $T!K?I ?@N#L H$JE$ M$QGB!#C " M$H$WCX RGE?U!! CDexpGetCardStat.F< "# ! # 1: "Q! ?QXB! ?@N#L M$QCO$%@#IQA EI "$$#%I#"#%GX# ?QXB@H SAM ?@N#L, #$ GHIECT@I#"A "Bh#B!? M$ML#$? "$$#%I#"#%GXWIF$ ?QXB@ % SAM ?@N#I. N! !"BINM@E!! %"IV ($KLBE$ 3-V) M$ML#$? "$$#%I#"#%GXW!P ?QXB KQ$?!NGI#"A. "Q! @G#IE#!R!?@U!A MN$V$D!# G"MITE$, #$ "Bh#B!? M$ML#$? "$$#%I#"#%GXWIF$ ?QXB@ G"#@E@%Q!%@I#"A % H@?"!H@QCE$I OE@BIE!I ($KLBE$ 3). ,7/*," 9:#4; / ) *< " 7 (BC++ v.5.01) "H. M.4.2 3.13. ] C CDexpDebitTransaction."/,"# : CDexpDebitTransaction."/#"! # : ZGE?U!A CDexpDebitTransaction %LM$QEAI# DIKI#$%@E!I %LKN@EE$F$ ?$TIQC?@ ?@N#L M$QCO$%@#IQA E@ G?@O@EEGX "GHHG. MIN@U!A %LM$QEAI#"A % D!@Q$FI " SAM-?@N#$P, % MN$UI""I ?$#$N$F$ MN$!"V$D!# D!E@H!BI"?@A @G#IE#!R!?@U!A ?@N# ! "$OD@h#"A "IN#!R!?@# (M$DM!"C) $MIN@U!!.0+*, 1 ) # # 1: I$KV$D!H$ E@Q!B!I SAM-?@N#L ! ?@N#L M$QCO$%@#IQA. INID $KN@WIE!IH ? RGE?U!! CDexpDebitTransaction EI$KV$D!H$ MNID%@N!#IQCE$ «M$D?QXB!#C» R@PQ " ?QXB@H! / [ (RGE?U!A CDexpCheckAccessCard ! R@PQ CA_ID.KEY), %LO%@#C RGE?U!! CDexpConnectUserCard ! CDexpConnectSAMCard (I"Q! i#$ EI KLQ$ %LM$QEIE$ N@EII). @#IH %LM$QE!#C %EITEXX ! %EG#NIEEXX @G#IE#!R!?@U!X (CDexpInternalAuth, CDexpExternalAuth).3 #("4 : #include "CDexp.h"DSSSCT File : cdex_pg.doc Ref : CDEXPPG0000 Revision:2.0 17 / 49 Copyright © Dekart S.R.L (www.dekart.com) - 2001 This document shall not be disclosed to a third party without prior written consent of Dekart S.R.L. !?@?@A B@"#C D@EE$F$ D$?GHIE#@ EI H$JI# KL#C %$"MN$!O%IDIE@ % ?@?$P KL #$ E! KLQ$ R$NHI ! ?@?!H! KL, #$ E! KLQ$ "NID"#%@H! KIO M!"CHIEE$F$ N@ONITIE!A %Q@DIQCU@ @%#$N"?!V MN@%. A " ! .
  18. 18. int CDexpDebitTransaction (HANDLE hcd_user, HANDLE hcd_SAM, short purse, unsigned long amount, char *cur, char *merchantID, char *rnd, char *crt, char *ISOcmd, char *Data, char *SW1SW2)56*$#7 $"##7 : hcd_user – Q$F!BI"?!P E$HIN (HANDLE), "%AO@EELP " $#?NL#LH ?$HHGE!?@U!$EELH M$N#$H, ? ?$#$N$HG M$D?QXBhE "B!#L%@#IQC ! % ?$#$N$H E@V$D!#"A ?@N#@ M$QCO$%@#IQA. hcd_ SAM – Q$F!BI"?!P E$HIN (HANDLE), "%AO@EELP " $#?NL#LH ?$HHGE!?@U!$EELH M$N#$H, ? ?$#$N$HG M$D?QXBhE "B!#L%@#IQC ! % ?$#$N$H E@V$D!#"A SAM-?@N#@. MercantID – G?@O@#IQC E@ "#N$?G, "$DINJ@WGX !DIE#!R!?@#$N MN$D@%U@ (8 TI"#E@DU@#IN!BELV U!RN). purse – E$HIN iQI?#N$EE$F$ ?$TIQC?@ (UIQ$I B!"Q$). N!HIB@E!I: EGHIN@U!A E@B!E@I#"A " 1. amount – DQ!EE$I UIQ$I, $MNIDIQAXWII "GHHG, E@ ?$#$NGX MN$!"V$D!# DIKI#$%@E!I ?$TIQC?@. N!HIB@E!I: "GHH@ DIKI#$%@E!A D$QJE@ KL#C #@?$P, B#$KL (K@Q@E" ?$TIQC?@ M$QCO$%@#IQA- amount) > 0; cur – G?@O@#IQC E@ "#N$?G, "$DINJ@WGX ?$D %@QX#L M$ ISO, MNID"#@%QIEELP % ASCII ?$DI (3 K@P#@);576*$#7 $"##7 : rnd – G?@O@#IQC E@ KGRIN (N@OHIN$H EI HIEII 17 K@P#$%), % ?$#$NLP RGE?U!A %$O%N@W@I# "QGB@PEGX M$"QID$%@#IQCE$"#C (8 – D%$!BELV K@P#$%) % R$NH@#I ASCII % TI"#E@DU@#IN!BE$H ?$DI. crt – G?@O@#IQC E@ KGRIN (N@OHIN$H EI HIEII 13 K@P#$%), % ?$#$NLP RGE?U!A %$O%N@W@I# "IN#!R!?@# (M$DM!"C) $MIN@U!! DIKI#$%@E!A ?$TIQC?@ (6 – D%$!BELV K@P#$%) % R$NH@#I ASCII % TI"#E@DU@#IN!BE$H ?$DI. ISOcmd – G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL "$"#@%ELI B@"#! ?$H@EDL, M$D@%@IH$P E@ ?@N#G ("$FQ@"E$ ISO) - CLA||INS||P1||P2||P3. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 17 K@P#$% ("H. M. 4.3). Data - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL D@EELI, EI$KV$D!HLI DQA %LM$QEIE!A "$$#%I#"#%GXWIP ?$H@EDL. @OHIN KGRIN@ D$QJIE KL#C D$"#@#$BELH (EI HIEII 256 K@P#$%). SW1SW2 - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL K@P#L – NIOGQC#@# %LM$QEIE!A ?$H@EDL % ?@N#I. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 12 K@P#$% ("H. M. 4.3).5*/, "8" * /#"! # : 1 - G"MITE$I O@%INTIE!I MN$FN@HHL; 0 - $T!K?@ ?@N#L (N@"T!NIEE$I "$$KWIE!I $K $T!K?I ?@N#L H$JE$ M$QGB!#C " M$H$WCX RGE?U!! CDexpGetCardStat); $#N!U@#IQCE$I OE@BIE!I ?$D@ $T!K?! ("H. ?$DL $T!K$? % M.4.1).F< "# ! # 1: "Q! ?QXB! ?@N#L M$QCO$%@#IQA EI "$$#%I#"#%GX# ?QXB@H SAM ?@N#L, #$ GHIECT@I#"A "Bh#B!? M$ML#$? "$$#%I#"#%GXWIF$ ?QXB@ % ?@N#I M$QCO$%@#IQA !Q! SAM ?@N#I. N! !"BINM@E!! %"IV ($KLBE$ 3-V) M$ML#$? "$$#%I#"#%GXW!P ?QXB KQ$?!NGI#"A. "Q! D!E@H!BI"?@ADSSSCT File : cdex_pg.doc Ref : CDEXPPG0000 Revision:2.0 18 / 49 Copyright © Dekart S.R.L (www.dekart.com) - 2001 This document shall not be disclosed to a third party without prior written consent of Dekart S.R.L. !?@?@A B@"#C D@EE$F$ D$?GHIE#@ EI H$JI# KL#C %$"MN$!O%IDIE@ % ?@?$P KL #$ E! KLQ$ R$NHI ! ?@?!H! KL, #$ E! KLQ$ "NID"#%@H! KIO M!"CHIEE$F$ N@ONITIE!A %Q@DIQCU@ @%#$N"?!V MN@%. A " ! .
  19. 19. @G#IE#!R!?@U!A MN$V$D!# G"MITE$, #$ "Bh#B!? M$ML#$? "$$#%I#"#%GXWIF$ ?QXB@ G"#@E@%Q!%@I#"A % H@?"!H@QCE$I OE@BIE!I ($KLBE$ 3). ,7/*," 9:#4; / ) *< " 7 (BC++ v.5.01) "H. M.4.2 3.14. ] C CDexpCreditTransaction."/,"# : CDexpCreditTransaction."/#"! # : ZGE?U!A CDexpCreditTransaction %LM$QEAI# ?NID!#$%@E!I %LKN@EE$F$ ?$TIQC?@ ?@N#L M$QCO$%@#IQA E@ G?@O@EEGX "GHHG ! DIKI#$%@E!A "$$#%I#"#%GXWIF$ ?$TIQC?@ SAM-?@N#L E@ #GJI "GHHG. MIN@U!A %LM$QEAI#"A % D!@Q$FI " SAM-?@N#$P, % MN$UI""I ?$#$N$F$ MN$!"V$D!# D!E@H!BI"?@A @G#IE#!R!?@U!A ?@N# E@ $"E$%I "IN#!R!?@#$% (M$DM!"IP) $MIN@U!P.0+*, 1 ) # # 1: I$KV$D!H$ E@Q!B!I SAM-?@N#L ! ?@N#L M$QCO$%@#IQA. INID $KN@WIE!IH ? RGE?U!! CDexpCreditTransaction EI$KV$D!H$ MNID%@N!#IQCE$ «M$D?QXB!#C» R@PQ " ?QXB@H! / [ (RGE?U!A CdexpCheckAccessCard ! R@PQ CA_ID.KEY), %LO%@#C RGE?U!! CDexpConnectUserCard ! CDexpConnectSAMCard (I"Q! i#$ EI KLQ$ %LM$QEIE$ N@EII). @#IH %LM$QE!#C %EITEXX ! %EG#NIEEXX @G#IE#!R!?@U!X (CDexpInternalAuth, CDexpExternalAuth).3 #("4 : #include "CDexp.h" int CDexpCreditTransaction (HANDLE hcd_user, HANDLE hcd_SAM, short purse_user, short purse_SAM, unsigned long amount, char *cur, char *pointID, char *rnd, char *crt, char *rnd2, char *crt2, char *ISOcmd, char *Data, char *SW1SW2)56*$#7 $"##7 : hcd_user – Q$F!BI"?!P E$HIN (HANDLE), "%AO@EELP " $#?NL#LH ?$HHGE!?@U!$EELH M$N#$H, ? ?$#$N$HG M$D?QXBhE "B!#L%@#IQC ! % ?$#$N$H E@V$D!#"A ?@N#@ M$QCO$%@#IQA. hcd_ SAM – Q$F!BI"?!P E$HIN (HANDLE), "%AO@EELP " $#?NL#LH ?$HHGE!?@U!$EELH M$N#$H, ? ?$#$N$HG M$D?QXBhE "B!#L%@#IQC ! % ?$#$N$H E@V$D!#"A SAM-?@N#@. pointID – G?@O@#IQC E@ "#N$?G, "$DINJ@WGX !DIE#!R!?@#$N MGE?#@ M$M$QEIE!A (8 TI"#E@DU@#IN!BELV U!RN). cur – G?@O@#IQC E@ "#N$?G, "$DINJ@WGX ?$D %@QX#L M$ ISO, MNID"#@%QIEELP % ASCII ?$DI (3 K@P#@). purse_user – E$HIN iQI?#N$EE$F$ ?$TIQC?@ ?@N#L M$QCO$%@#IQA (UIQ$I B!"Q$). N!HIB@E!I: EGHIN@U!A E@B!E@I#"A " 1. purse_SAM – E$HIN iQI?#N$EE$F$ ?$TIQC?@ SAM-?@N#L (UIQ$I B!"Q$). N!HIB@E!I: EGHIN@U!A E@B!E@I#"A " 1. amount – DQ!EE$I UIQ$I, $MNIDIQAXWII "GHHG, E@ ?$#$NGX MN$!"V$D!# ?NID!#$%@E!I ?$TIQC?@ ?@N#L M$QCO$%@#IQA ! DIKI#$%@E!I ?$TIQC?@ SAM-?@N#L. N!HIB@E!I: "GHH@ ?NID!#$%@E!A D$QJE@ KL#C #@?$P, B#$KL (K@Q@E" ?$TIQC?@ ?@N#L M$QCO$%@#IQA + amount) <DSSSCT File : cdex_pg.doc Ref : CDEXPPG0000 Revision:2.0 19 / 49 Copyright © Dekart S.R.L (www.dekart.com) - 2001 This document shall not be disclosed to a third party without prior written consent of Dekart S.R.L. !?@?@A B@"#C D@EE$F$ D$?GHIE#@ EI H$JI# KL#C %$"MN$!O%IDIE@ % ?@?$P KL #$ E! KLQ$ R$NHI ! ?@?!H! KL, #$ E! KLQ$ "NID"#%@H! KIO M!"CHIEE$F$ N@ONITIE!A %Q@DIQCU@ @%#$N"?!V MN@%. A " ! .
  20. 20. M$#$Q$? ?@N#L M$QCO$%@#IQA, (K@Q@E" ?$TIQC?@ SAM-?@N#L - amount) > 0.576*$#7 $"##7 : rnd – G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H RGE?U!A %$O%N@W@I# "QGB@PEGX M$"QID$%@#IQCE$"#C % R$NH@#I ASCII % TI"#E@DU@#IN!BE$H ?$DI. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 17 K@P# (Z 1). "rt - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H RGE?U!A %$O%N@W@I# "IN#!R!?@# (M$DM!"C) $MIN@U!! DIKI#$%@E!A % R$NH@#I ASCII % TI"#E@DU@#IN!BE$H ?$DI. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 13 K@P# (Z 1). rnd2 – G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H RGE?U!A %$O%N@W@I# "QGB@PEGX M$"QID$%@#IQCE$"#C % R$NH@#I ASCII % TI"#E@DU@#IN!BE$H ?$DI. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 17 K@P# (Z 2). crt2 - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H RGE?U!A %$O%N@W@I# "IN#!R!?@# (M$DM!"C) $MIN@U!! DIKI#$%@E!A % R$NH@#I ASCII % TI"#E@DU@#IN!BE$H ?$DI. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 13 K@P# (Z 2). ISOcmd – G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL "$"#@%ELI B@"#! ?$H@EDL, M$D@%@IH$P E@ ?@N#G ("$FQ@"E$ ISO) - CLA||INS||P1||P2||P3. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 17 K@P#$% ("H. M. 4.3). Data - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL D@EELI, EI$KV$D!HLI DQA %LM$QEIE!A "$$#%I#"#%GXWIP ?$H@EDL. @OHIN KGRIN@ D$QJIE KL#C D$"#@#$BELH (EI HIEII 256 K@P#$%). SW1SW2 - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL K@P#L – NIOGQC#@# %LM$QEIE!A ?$H@EDL % ?@N#I. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 12 K@P#$% ("H. M. 4.3).5*/, "8" * /#"! # : 1 - G"MITE$I O@%INTIE!I MN$FN@HHL; 0 - $T!K?@ ?@N#L (N@"T!NIEE$I "$$KWIE!I $K $T!K?I ?@N#L H$JE$ M$QGB!#C " M$H$WCX RGE?U!! CDexpGetCardStat); $#N!U@#IQCE$I OE@BIE!I ?$D@ $T!K?! ("H. ?$DL $T!K$? % M.4.1).F< "# ! # 1: "Q! ?QXB! ?@N#L M$QCO$%@#IQA EI "$$#%I#"#%GX# ?QXB@H SAM ?@N#L, #$ GHIECT@I#"A "Bh#B!? M$ML#$? "$$#%I#"#%GXWIF$ ?QXB@ % ?@N#I M$QCO$%@#IQA !Q! SAM ?@N#I. N! !"BINM@E!! %"IV ($KLBE$ 3-V) M$ML#$? "$$#%I#"#%GXW!P ?QXB KQ$?!NGI#"A. "Q! D!E@H!BI"?@A @G#IE#!R!?@U!A MN$V$D!# G"MITE$, #$ "Bh#B!? M$ML#$? "$$#%I#"#%GXWIF$ ?QXB@ G"#@E@%Q!%@I#"A % H@?"!H@QCE$I OE@BIE!I ($KLBE$ 3). ,7/*," 9:#4; / ) *< " 7 (BC++ v.5.01) "H. M.4.2 3.15. ] C CDexpGetCardData."/,"# : CDexpGetCardData."/#"! # : ZGE?U!A $KI"MIB!%@I# B#IE!I D@EELV " ?@N#L M$QCO$%@#IQA.0+*, 1 ) # # 1:DSSSCT File : cdex_pg.doc Ref : CDEXPPG0000 Revision:2.0 20 / 49 Copyright © Dekart S.R.L (www.dekart.com) - 2001 This document shall not be disclosed to a third party without prior written consent of Dekart S.R.L. !?@?@A B@"#C D@EE$F$ D$?GHIE#@ EI H$JI# KL#C %$"MN$!O%IDIE@ % ?@?$P KL #$ E! KLQ$ R$NHI ! ?@?!H! KL, #$ E! KLQ$ "NID"#%@H! KIO M!"CHIEE$F$ N@ONITIE!A %Q@DIQCU@ @%#$N"?!V MN@%. A " ! .
  21. 21. I$KV$D!H$ E@Q!B!I ?@N#L M$QCO$%@#IQA. INID $KN@WIE!IH ? RGE?U!! CDexpGetCardData EI$KV$D!H$ MNID%@N!#IQCE$ %LO%@#C RGE?U!! CDexpCheckAccessCard CDexpConnectUserCard (I"Q! i#$ EI KLQ$ %LM$QEIE$ N@EII).3 #("4 : #include " CDexp.h" int CDexpGetCardData (HANDLE hcd, char *PANcode, char *SerNo, char *USRname, char *StartDate, char *EndDate, char *Ident, char *Auth, char *ISOcmd, char *Data, char *SW1SW2)56*$#7 $"##7 : hcd – Q$F!BI"?!P E$HIN (HANDLE), "%AO@EELP " $#?NL#LH ?$HHGE!?@U!$EELH M$N#$H, ? ?$#$N$HG M$D?QXBhE "B!#L%@#IQC ! % ?$#$N$H E@V$D!#"A ?@N#@.576*$#7 $"##7 : hcd – Q$F!BI"?!P E$HIN (HANDLE), "%AO@EELP " $#?NL#LH ?$HHGE!?@U!$EELH M$N#$H, ? ?$#$N$HG M$D?QXBhE "B!#L%@#IQC ! % ?$#$N$H E@V$D!#"A ?@N#@. PANcode – G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDI# %$O%N@WhE PAN-?$D ?@N#L M$QCO$%@#IQA. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 20 K@P#$%. SerNo - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDI# %$O%N@WhE "IN!PELP E$HIN ?@N#L M$QCO$%@#IQA. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 33 K@P#$%. USRname - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDI# %$O%N@WIE$ !HA M$QCO$%@#IQA. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 40 K@P#$%. StartDate - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDI# %$O%N@WIE@ D@#@ E@B@Q@ DIP"#%!A ?@N#L. Z$NH@# ••. EndDate - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDI# %$O%N@WIE@ D@#@ $?$EB@E!A DIP"#%!A ?@N#L. Z$NH@# ••. Ident - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDI# %$O%N@WIE$ "$DINJ!H$I R@PQ@ Ident (8000) ?@N#L M$QCO$%@#IQA. @OHIN KGRIN@ D$QJIE KL#C D$"#@#$BELH (EI HIEII 256 K@P#$%). Auth - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDI# %$O%N@WIE$ "$DINJ!H$I R@PQ@ Auth (8300) ?@N#L M$QCO$%@#IQA. @OHIN KGRIN@ D$QJIE KL#C D$"#@#$BELH (EI HIEII 256 K@P#$%). ISOcmd – G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL "$"#@%ELI B@"#! ?$H@EDL, M$D@%@IH$P E@ ?@N#G ("$FQ@"E$ ISO) - CLA||INS||P1||P2||P3. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 17 K@P#$% ("H. M. 4.3). Data - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL D@EELI, EI$KV$D!HLI DQA %LM$QEIE!A "$$#%I#"#%GXWIP ?$H@EDL. @OHIN KGRIN@ D$QJIE KL#C D$"#@#$BELH (EI HIEII 256 K@P#$%). SW1SW2 - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL K@P#L – NIOGQC#@# %LM$QEIE!A ?$H@EDL % ?@N#I. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 12 K@P#$% ("H. M. 4.3).5*/, "8" * /#"! # : 1 – MN! G"MITE$H O@%INTIE!! MN$FN@HHL, !E@BI $#N!U@#IQCE$I OE@BIE!I ?$D@ $T!K?! ("H. ?$DL $T!K$? % M. 4.1)DSSSCT File : cdex_pg.doc Ref : CDEXPPG0000 Revision:2.0 21 / 49 Copyright © Dekart S.R.L (www.dekart.com) - 2001 This document shall not be disclosed to a third party without prior written consent of Dekart S.R.L. !?@?@A B@"#C D@EE$F$ D$?GHIE#@ EI H$JI# KL#C %$"MN$!O%IDIE@ % ?@?$P KL #$ E! KLQ$ R$NHI ! ?@?!H! KL, #$ E! KLQ$ "NID"#%@H! KIO M!"CHIEE$F$ N@ONITIE!A %Q@DIQCU@ @%#$N"?!V MN@%. A " ! .
  22. 22. ,7/*," 9:#4; / ) *< " 7 (BC++ v.5.01) "H. M. 4.2 3.16. ] C CDexpGetPurseData."/,"# : CDexpGetPurseData."/#"! # : ZGE?U!A MN$%INAI# E@Q!B!I ?@N#L M$QCO$%@#IQA % "B!#L%@#IQI ! $KI"MIB!%@I# M$QGBIE!I M$QE$P !ER$NH@U!! $ %LKN@EE$H iQI?#N$EE$H ?$TIQC?I ?@N#L M$QCO$%@#IQA.0+*, 1 ) # # 1: I$KV$D!H$ E@Q!B!I ?@N#L M$QCO$%@#IQA. INID $KN@WIE!IH ? RGE?U!! CDexpGetPurseData EI$KV$D!H$ MNID%@N!#IQCE$ %LO%@#C RGE?U!! CDexpCheckAccessCard CDexpConnectUserCard (I"Q! i#$ EI KLQ$ %LM$QEIE$ N@EII).3 #("4 : #include "CDexp.h" int CDexpGetPurseData (HANDLE hcd, int PurseNo, char *CurCode, char *AccountNo, char *MaxAmount, char *LastDebitDate, char *LastCreditDate, char *PurseBalance, char *OperationHistory, char *ISOcmd, char *Data, char *SW1SW2)56*$#7 $"##7 : hcd – Q$F!BI"?!P E$HIN (HANDLE), "%AO@EELP " $#?NL#LH ?$HHGE!?@U!$EELH M$N#$H, ? ?$#$N$HG M$D?QXBhE "B!#L%@#IQC ! % ?$#$N$H E@V$D!#"A ?@N#@. PurseNo - E$HIN iQI?#N$EE$F$ ?$TIQC?@ ?@N#L M$QCO$%@#IQA (1, 2 !Q! 3).576*$#7 $"##7 : CurCode - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDI# %$O%N@WhE ?$D %@QX#L M$ ISO, MNID"#@%QIEELP % ASCII ?$DI (4 K@P#@) AccountNo – G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDI# %$O%N@WhE E$HIN "BI#@ ?$TIQC?@. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 20 K@P#$%. MaxAmount - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDI# %$O%N@WhE M$#$Q$? %LKN@EE$F$ ?$TIQC?@ ?@N#L M$QCO$%@#IQA. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 5 K@P#$%. OperationHistory - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDI# %$O%N@WIE@ !ER$NH@U!A $ 4 M$"QIDE!V $MIN@U!AV " ?$TIQC?$H. @EE@A "#N$?@ "$"#$!# !O 4 "#N$? (" EGQI%LH M$"QIDE!H "!H%$Q$H), ?@JD@A !O ?$#$NLV "$DINJ!#: • @#G $MIN@U!! (3 K@P#@, R$NH@# ••); • [$D@ ?$HHIN"@E#@ (4 K@P#@); • GHHG $MIN@U!! (3 K@P#@). @OHIN KGRIN@ D$QJIE KL#C EI HIEII 100 K@P#$%. PurseBalance - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDI# %$O%N@WIE@ !ER$NH@U!A $ K@Q@E"@V M$"QI ?@JD$P !O 4 M$"QIDE!V $MIN@U!P " ?$TIQC?$H. @EE@A "#N$?@ "$"#$!# !O 4 "#N$? (" EGQI%LH M$"QIDE!H "!H%$Q$H), ?@JD@A !O ?$#$NLV "$DINJ!# K@Q@E" ?$TIQC?@ (4 K@P#@). @OHIN KGRIN@ D$QJIE KL#C EI HIEII 40 K@P#$%.DSSSCT File : cdex_pg.doc Ref : CDEXPPG0000 Revision:2.0 22 / 49 Copyright © Dekart S.R.L (www.dekart.com) - 2001 This document shall not be disclosed to a third party without prior written consent of Dekart S.R.L. !?@?@A B@"#C D@EE$F$ D$?GHIE#@ EI H$JI# KL#C %$"MN$!O%IDIE@ % ?@?$P KL #$ E! KLQ$ R$NHI ! ?@?!H! KL, #$ E! KLQ$ "NID"#%@H! KIO M!"CHIEE$F$ N@ONITIE!A %Q@DIQCU@ @%#$N"?!V MN@%. A " ! .
  23. 23. LastDebitDate - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDI# %$O%N@WIE@ D@#@ M$"QIDEIP $MIN@U!! DIKI#$%@E!A. Z$NH@# ••. LastCreditDate - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDI# %$O%N@WIE@ D@#@ M$"QIDEIP $MIN@U!! ?NID!#$%@E!A. Z$NH@# ••. ISOcmd – G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL "$"#@%ELI B@"#! ?$H@EDL, M$D@%@IH$P E@ ?@N#G ("$FQ@"E$ ISO) - CLA||INS||P1||P2||P3. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 17 K@P#$% ("H. M. 4.3). Data - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL D@EELI, EI$KV$D!HLI DQA %LM$QEIE!A "$$#%I#"#%GXWIP ?$H@EDL. @OHIN KGRIN@ D$QJIE KL#C D$"#@#$BELH (EI HIEII 256 K@P#$%). SW1SW2 - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL K@P#L – NIOGQC#@# %LM$QEIE!A ?$H@EDL % ?@N#I. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 12 K@P#$% ("H. M. 4.3).5*/, "8" * /#"! # : 1 – MN! G"MITE$H O@%INTIE!! MN$FN@HHL, !E@BI $#N!U@#IQCE$I OE@BIE!I ?$D@ $T!K?! ("H. ?$DL $T!K$? % M. 4.1) ,7/*," 9:#4; / ) *< " 7 (BC++ v.5.01) "H. M. 4.2 3.17. ] C CDexpUpdateMaxAmount."/,"# : CDexpUpdateMaxAmount."/#"! # : ZGE?U!A $KI"MIB!%@I# "HIEG M$#$Q?@ iQI?#N$EE$F$ ?$TIQC?@ ?@N#L M$QCO$%@#IQA.0+*, 1 ) # # 1: I$KV$D!H$ E@Q!B!I ?@N#L M$QCO$%@#IQA. INID $KN@WIE!IH ? RGE?U!! CDexpUpdateMaxAmount EI$KV$D!H$ MNID%@N!#IQCE$ «M$D?QXB!#C» R@PQ " ?QXB@H! iH!#IE#@ (RGE?U!A CdexpCheckAccessCard ! R@PQ ISS_ID.SE3), %LO%@#C RGE?U!X CDexpConnectUserCard (I"Q! i#$ EI KLQ$ %LM$QEIE$ N@EII).3 #("4 : #include " CDexp.h" int CDexpUpdateMaxAmount (HANDLE hcd, int PurseNo, unsigned long MaxAmount, char *ISOcmd, char *Data, char *SW1SW2)56*$#7 $"##7 : hcd – Q$F!BI"?!P E$HIN (HANDLE), "%AO@EELP " $#?NL#LH ?$HHGE!?@U!$EELH M$N#$H, ? ?$#$N$HG M$D?QXBhE "B!#L%@#IQC ! % ?$#$N$H E@V$D!#"A ?@N#@. PurseNo - E$HIN iQI?#N$EE$F$ ?$TIQC?@ ?@N#L M$QCO$%@#IQA (1, 2 !Q! 3). MaxAmount - DQ!EE$I UIQ$I, $MNIDIQAXWII E$%$I OE@BIE!I M$#$Q?@ %LKN@EE$F$ ?$TIQC?@576*$#7 $"##7 : ISOcmd – G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL "$"#@%ELI B@"#! ?$H@EDL, M$D@%@IH$P E@ ?@N#G ("$FQ@"E$ ISO) -DSSSCT File : cdex_pg.doc Ref : CDEXPPG0000 Revision:2.0 23 / 49 Copyright © Dekart S.R.L (www.dekart.com) - 2001 This document shall not be disclosed to a third party without prior written consent of Dekart S.R.L. !?@?@A B@"#C D@EE$F$ D$?GHIE#@ EI H$JI# KL#C %$"MN$!O%IDIE@ % ?@?$P KL #$ E! KLQ$ R$NHI ! ?@?!H! KL, #$ E! KLQ$ "NID"#%@H! KIO M!"CHIEE$F$ N@ONITIE!A %Q@DIQCU@ @%#$N"?!V MN@%. A " ! .
  24. 24. CLA||INS||P1||P2||P3. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 17 K@P#$% ("H. M. 4.3). Data - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL D@EELI, EI$KV$D!HLI DQA %LM$QEIE!A "$$#%I#"#%GXWIP ?$H@EDL. @OHIN KGRIN@ D$QJIE KL#C D$"#@#$BELH (EI HIEII 256 K@P#$%). SW1SW2 - G?@O@#IQC E@ KGRIN ("#N$?G), % ?$#$N$H KGDG# %$O%N@WIEL K@P#L – NIOGQC#@# %LM$QEIE!A ?$H@EDL % ?@N#I. @OHIN KGRIN@ D$QJIE KL#C EI HIEII 12 K@P#$% ("H. M. 4.3).5*/, "8" * /#"! # : 1 – MN! G"MITE$H O@%INTIE!! MN$FN@HHL, !E@BI $#N!U@#IQCE$I OE@BIE!I ?$D@ $T!K?! ("H. ?$DL $T!K$? % M. 4.1) ,7/*," 9:#4; / ) *< " 7 (BC++ v.5.01) "H. M. 4.2DSSSCT File : cdex_pg.doc Ref : CDEXPPG0000 Revision:2.0 24 / 49 Copyright © Dekart S.R.L (www.dekart.com) - 2001 This document shall not be disclosed to a third party without prior written consent of Dekart S.R.L. !?@?@A B@"#C D@EE$F$ D$?GHIE#@ EI H$JI# KL#C %$"MN$!O%IDIE@ % ?@?$P KL #$ E! KLQ$ R$NHI ! ?@?!H! KL, #$ E! KLQ$ "NID"#%@H! KIO M!"CHIEE$F$ N@ONITIE!A %Q@DIQCU@ @%#$N"?!V MN@%. A " ! .
  25. 25. 4. 4.1. A { y1 X J # X FG8 4*$7 ,*/, "(" 0 NOK IE$NH@QCE$I O@%INTIE!I MN$FN@HHL. $OE!?Q@ $T!K?@ MN! N@K$#I " ?@N#$P. 1 OK $NH@QCE$I O@%INTIE!I MN$FN@HHL. FH G4 *G8 <* 6" "4( " -1 ERR_PC_TIME_OUT T!K?@ %LO%@E@ "K$IH % N@K$#I ?$HMCX#IN@ -2...-7 IOIN% I ( "#+ : 7 4*$7 *H G4 #( 9 %" CT-API -8 ERR_CT_API_NOT_ACC CT-API EID$"#GMIE -10 ERR_CT_API_TRANSMIS T!K?@ MINID@B! -11 ERR_CT_API_MEM_ASIGN T!K?@ O@V%@#@ M@HA#! FH G4 , ,*/# 4"O8 ) "G*( 9:#4; 1 *$:+1 -12 ERR_FILE_NOT_FOUND T!K?@ %LO%@E@ $#"G#"#%!IH R@PQ@ " ?QXB@H! "!"#IHL -13 ERR_READING_FILE T!K?@ MN! B#IE!! R@PQ@ " ?QXB@H! "!"#IHL -14 ERR_BAD_READER $A%QIE!I D@EE$P $T!K?! H$JI# F$%$N!#C $ "QIDGXWIH: • $#"G#"#%GI# "B!#L%@#IQC, !Q! • #!M "B!#L%@#IQA G?@O@E EIMN@%!QCE$, !Q! • $T!K?@ MN! N@K$#I "B!#L%@#IQA, !Q! • G?@O@E EI%INELP -M$N#. -15 ERR_NO_CARD_ON_READER T!K?@ %LO%@E@ $#"G#"#%!IH ?@N#L % "B!#L%@#IQI -16 ERR_BAD_ACCESS_CARD T!K?@ MN! N@K$#I " ?@N#$P D$"#GM@, %$OH$JE$, %"#@%QIE@ EI ?@N#@ D$"#GM@, @ !E@A. -17 ERR_INVALID_PIN_LEN IMN@%!QCE@A DQ!E@ PIN-?$D@1 T!K?! H$JE$ N@ODIQ!#C E@ "QIDGXW!I FNGMML: $T!K?! $K$NGD$%@E!A ( -M$N#@, "B!#L%@#IQAsmart-?@N#, ?$HMCX#IN@), $T!K?! MN$#$?$Q@, $T!K?! D@EELV (E@MN!HIN, EI%INELP "IN#!R!?@#).DSSSCT File : cdex_pg.doc Ref : CDEXPPG0000 Revision:2.0 25 / 49 Copyright © Dekart S.R.L (www.dekart.com) - 2001 This document shall not be disclosed to a third party without prior written consent of Dekart S.R.L. !?@?@A B@"#C D@EE$F$ D$?GHIE#@ EI H$JI# KL#C %$"MN$!O%IDIE@ % ?@?$P KL #$ E! KLQ$ R$NHI ! ?@?!H! KL, #$ E! KLQ$ "NID"#%@H! KIO M!"CHIEE$F$ N@ONITIE!A %Q@DIQCU@ @%#$N"?!V MN@%. A " ! .
  26. 26. -18 ERR_INVALID_PIN_CHR N! %%$DI PIN-?$D@ KLQ! !"M$QCO$%@EL EI #$QC?$ DI"A#!BELI U!RNL -19 ERR_BAD_PIN_VERIFY PIN-?$D EI %IN!R!U!N$%@E -20 ERR_BAD_PASSWORD I%INELP M@N$QC D$"#GM@ ? "I?NI#ELH ?QXB@H "!"#IHL -21 ERR_BAD_SAM_CARD T!K?@ MN! N@K$#I " SAM ?@N#$P, %$OH$JE$, %"#@%QIE@ EI SAM ?@N#@, @ !E@A. -22 ERR_BAD_USR_CARD T!K?@ MN! N@K$#I " ?@N#$P M$QCO$%@#IQA, %$OH$JE$, %"#@%QIE@ EI ?@N#@ M$QCO$%@#IQA, @ !E@A. -23 ERR_INV_REC_LEN IMN@%!QCE@A DQ!E@ O@M!"! -24 ERR_DNOT_FOUND_KEY #"G#"#%GI# ?QXB -25 ERR_APP_NOT_FOUND #"G#"#%GI# MN!Q$JIE!I -26 ERR_READ_CARD_FILE T!K?@ B#IE!A R@PQ@ E@ ?@N#I -27 ERR_IDENT_NOT_FOUND @ ?@N#I $#"G#"#%GI# R@PQ 8000 -28 ERR_BAD_ISS_CERT I%INELP "IN#!R!?@# $#?NL#$F$ ?QXB@ iH!#IE#@ -29 ERR_BAD_ISS_IDEND I%INELP iH!#IE# -30 ERR_AUTH_NOT_FOUND @ ?@N#I $#"G#"#%GI# R@PQ 8300 -31 ERR_UNKNOWN_AUTH_ALG I!O%I"#ELP @QF$N!#H @G#IE#!R!?@U!! -32 ERR_SN_NOT_FOUND @ ?@N#I $#"G#"#%GI# R@PQ 2F00 -33 ERR_SAM_NOT_FOUND #"G#"#%GI# SAM-?@N#@ -34 ERR_USR_NOT_FOUND #"G#"#%GI# ?@N#@ M$QCO$%@#IQA -35 ERR_USR_PURS_NOTFOUND @ ?@N#I M$QCO$%@#IQA $#"G#"#%GI# R@PQ " ?$TIQC?$H -36 ERR_SAM_PURS_NOTFOUND @ SAM-?@N#I $#"G#"#%GI# R@PQ " ?$TIQC?$H -37 ERR_USR_IS_BAD « @M$NBIE@» ?@N#@ M$QCO$%@#IQA – M$DQIJ!# !O}A#!X -38 ERR_SAM_IS_BAD « @M$NBIE@» SAM-?@N#@ – M$DQIJ!# !O}A#!X -39 ERR_USR_CUR_NOT_MATCH N! %LO$%I RGE?U!! G?@O@E EI%INELP #!M %@QX#L % ?$TIQC?I ?@N#L M$QCO$%@#IQA -40 ERR_SAM_CUR_NOT_MATCH N! %LO$%I RGE?U!! G?@O@E EI%INELP #!M %@QX#L % ?$TIQC?I SAM-?@N#L -41 ERR_READ_USR_CARD T!K?@ MN! B#IE!! ?@N#L M$QCO$%@#IQA -42 ERR_READ_SAM_CARD T!K?@ MN! B#IE!! SAM-?@N#L -43 ERR_USR_DEBIT_PURSE T!K?@ MN! DIKI#$%@E!! ?$TIQC?@ ?@N#L M$QCO$%@#IQA -44 ERR_USR_CREDIT_PURSE T!K?@ MN! ?NID!#$%@E!! ?$TIQC?@ ?@N#L M$QCO$%@#IQADSSSCT File : cdex_pg.doc Ref : CDEXPPG0000 Revision:2.0 26 / 49 Copyright © Dekart S.R.L (www.dekart.com) - 2001 This document shall not be disclosed to a third party without prior written consent of Dekart S.R.L. !?@?@A B@"#C D@EE$F$ D$?GHIE#@ EI H$JI# KL#C %$"MN$!O%IDIE@ % ?@?$P KL #$ E! KLQ$ R$NHI ! ?@?!H! KL, #$ E! KLQ$ "NID"#%@H! KIO M!"CHIEE$F$ N@ONITIE!A %Q@DIQCU@ @%#$N"?!V MN@%. A " ! .
  27. 27. -45 ERR_SAM_DEBIT_PURSE T!K?@ MN! DIKI#$%@E!! ?$TIQC?@ SAM-?@N#L -46 ERR_INV_ID_LEN I%INE@A DQ!E@ !DIE#!R!?@#$N@-47...-50 IOIN% FH G4 , ,*/# 4"O8 ) "G*( G G+ *( 4*% mirlib ( "G*(" G*+-H ! +" ) -51 ERR_BASE_TOO_BIG "E$%@E!I B!"Q@ $BIEC K$QCT$I DQA MNID"#@%QIE!A -52 ERR_DIV_BY_ZERO IQIE!I E@ E$QC (% K!KQ!$#I?I K$QCT!V B!"IQ) -53 ERR_OVERFLOW INIM$QEIE!I – B!"Q$ $BIEC K$QCT$I -54 ERR_NEG_RESULT N! %LB!"QIE!! M$QGBIE$ $#N!U@#IQCE$I OE@BIE!I -55 ERR_BAD_FORMAT I%INELP %V$DE$P R$NH@# B!"Q@ -56 ERR_BAD_BASE I%INE$I $"E$%@E!I B!"Q@ -57 ERR_BAD_PARAMETERS I%INE$I !"M$QCO$%@E!I M@N@HI#N@ -58 ERR_OUT_OF_MEMORY ID$"#@#$BE$ $MIN@#!%E$P M@HA#! -59 ERR_NEG_ROOT I#ELP ?$NIEC !O $#N!U@#IQCE$F$ B!"Q@ -60 ERR_NEG_POWER $O%IDIE!I B!"Q@ % $#N!U@#IQCEGX "#IMIEC -61 ERR_BAD_ROOT $ML#?@ M$QGB!#C EI%INELP ?$NIEC -62 ERR_INT_OP I%INE@A $MIN@U!A E@D Flash B!"Q$H -63 ERR_FLASH_OVERFLOW Flash MINIM$QEIE!I -64 ERR_TOO_BIG !"Q@ $BIEC K$QCT!I -65 ERR_NEG_LOG $F@N!RH !O $#N!U@#IQCE$F$ B!"Q@ -66 ERR_DOUBLE_FAIL T!K?@ MNI$KN@O$%@E!A double % flash -67 ERR_IO_OVERFLOW INIM$QEIE!I KGRIN@ %%$D@/%L%$D@ -68 ERR_NO_MIRSYS !KQ!$#I?@ K$QCT!V B!"IQ EI MN$!E!U!@Q!O!N$%@E@ -69 ERR_BAD_MONT_MOD I%INELP $E#F$HIN! H$DGQC (D$QJIE KL#C EIBI#ELH) -70 ERR_NO_MONT_MOD I $MNIDIQIE $E#F$HIN! H$DGQC -71 ERR_EXP_TOO_BIG Q!T?$H K$QCT@A i?"M$EIE#@ -72 ERR_NBASE_MBP_P2 "E$%@E!I D$QJE$ KL#C "#IMIECX 2-73...–80 IOIN% -81 ERR_KEYFILE_NOT_FOUND #"G#"#%GI# R@PQ " ?QXB@H! [/ -82 ERR_READING_KEYFILE T!K?@ B#IE!A R@PQ@ ?QXBIP -83 ERR_PARFILE_NOT_FOUND #"G#"#%GI# R@PQ " M@N@HI#N@H!DSSSCT File : cdex_pg.doc Ref : CDEXPPG0000 Revision:2.0 27 / 49 Copyright © Dekart S.R.L (www.dekart.com) - 2001 This document shall not be disclosed to a third party without prior written consent of Dekart S.R.L. !?@?@A B@"#C D@EE$F$ D$?GHIE#@ EI H$JI# KL#C %$"MN$!O%IDIE@ % ?@?$P KL #$ E! KLQ$ R$NHI ! ?@?!H! KL, #$ E! KLQ$ "NID"#%@H! KIO M!"CHIEE$F$ N@ONITIE!A %Q@DIQCU@ @%#$N"?!V MN@%. A " ! .
  28. 28. sPRPERS.PAR -84 ERR_BAD_NUM_OF_PARAM T!K$BE$I B!"Q$ M@N@HI#N$% % R@PQI sPRPERS.PAR -85 ERR_BAD_PARAM_FMT I%INELI OE@BIE!A M@N@HI#N$% % R@PQI sPRPERS.PAR -86 ERR_BAD_CA_ID_FMT I%INE$I OE@BIE!I !DIE#!R!?@#$N@ [ -87 ERR_BAD_ISS_ID_FMT I%INE$I OE@BIE!I !DIE#!R!?@#$N@ iH!#IE#@ -88 ERR_CRTFILE_NOT_FOUND #"G#"#%GI# R@PQ " "IN#!R!?@#$H $#?NL#$F$ ?QXB@ iH!#IE#@ -89 ERR_CRT_ISS_NOT_CMP DIE#!R!?@#$N iH!#IE#@ EI "$%M@D@I# " G?@O@EELH % "IN#!R!?@#I -90 ERR_CRT_DATE_EXPIRED "#I? "N$? DIP"#%!A "IN#!R!?@#@ -91 ERR_CRT_CA_NOT_CMP DIE#!R!?@#$N iH!#IE#@ EI "$%M@D@I# " G?@O@EELH % "IN#!R!?@#I -92 ERR_CRT_LEN I%INE@A DQ!E@ "IN#!R!?@#@ -93 ERR_BAD_PUBLIC_LEN I%INE@A DQ!E@ $#?NL#$F$ ?QXB@ [ -94 ERR_BAD_AUTH_OF_CARD T!K?@ @G#IE#!R!?@U!! -95 ERR_INV_LUHN_CODE IMN@%!QCE$I OE@BIE!I luhn-?$D@ -96 ERR_NOT_FREE_MEM ID$"#@#$BE$ "%$K$DE$F$ HI"#@ -97 ERR_TRANS_KEY_VERIFY T!K?@ %IN!R!?@U!! #N@E"M$N#E$F$ ?QXB@ -98 ERR_CREATE_CARDFILE T!K?@ MN! "$OD@E!! R@PQ@ E@ ?@N#I -99 ERR_WRITE_CARD_FILE T!K?@ O@M!"! R@PQ@ E@ ?@N#G -100 ERR_BAD_IDENT_CONTENT I%INE$I "$DINJ!H$I R@PQ@ 8000 E@ ?@N#I -101 ERR_PERFILE_NOT_FOUND #"G#"#%GI# PER-R@PQ -102 ERR_SERNO_DONT_COMPAR I "$%M@D@I# NI@QCELP "IN!PELP E$HIN ?@N#L ! E$HIN, G?@O@EELP % PER-R@PQI -103 ERR_BAD_START_DATE I%INE@A D@#@ E@B@Q@ DIP"#%!A SAM- ?@N#L -104 ERR_BAD_END_DATE I%INE@A D@#@ $?$EB@E!A DIP"#%!A SAM-?@N#L -105 ERR_DATES_CONFLICT @#@ $?$EB@E!A DIP"#%!A SAM-?@N#L MNI%LT@I# D@#G $?$EB@E!A DIP"#%!A "IN#!R!?@#@ $#?NL#$F$ ?QXB@ iH!#IE#@ -106 ERR_PURSE_NOT_EMPTY [$TIQI? EI MG"#$P -107 ERR_KEY_VERIFICATION T!K?@ %IN!R!?@U!! ?QXB@ -108 ERR_UPDATE_CARD_FILE T!K?@ MINIO@M!"! R@PQ@ E@ ?@N#I -109 ERR_CHANGE_KEY T!K?@ !OHIEIE!A ?QXB@ -110 ERR_DEBIT_AMT_GRATE GHH@ DIKI#@ MNI%LT@I# $"#@#$? ?$TIQC?@ SAM-?@N#L -111 ERR_CREDIT_AMT_GRATE IOGQC#@# "Q$JIE!A $"#@#?@DSSSCT File : cdex_pg.doc Ref : CDEXPPG0000 Revision:2.0 28 / 49 Copyright © Dekart S.R.L (www.dekart.com) - 2001 This document shall not be disclosed to a third party without prior written consent of Dekart S.R.L. !?@?@A B@"#C D@EE$F$ D$?GHIE#@ EI H$JI# KL#C %$"MN$!O%IDIE@ % ?@?$P KL #$ E! KLQ$ R$NHI ! ?@?!H! KL, #$ E! KLQ$ "NID"#%@H! KIO M!"CHIEE$F$ N@ONITIE!A %Q@DIQCU@ @%#$N"?!V MN@%. A " ! .

×