1、 KSKSKSKSKSKSKSK KSKSKS KSKSK KSKS KSK KS KS X 6928 3 3:KS X 6928 3:2012 2012 3 28 http:/www.kats.go.krKS X 6928 3:2012 : e- ( ) ( ) () () ( ) : (WG3) ( ) LG : (http:/www.standard.go.kr) : :2012 3 28 2012-0132 : e- : (WG3) ( 02-509-7262) (http:/www.kats.go.kr). 10 5 , . KS X 6928 3:2012 i ii 1 1 2 1
2、 3 .2 4 .4 5 .6 5.1 .6 5.2 (Data Element)8 5.3 (Command Format).9 5.4 (Status Word, SW) .10 6 13 6.1 .13 6.2 .16 6.3 .17 6.4 (Mobil e Card) (AID).17 7 (Online Payment) .19 7.1 19 7.2 .19 7.3 19 7.4 20 7.5 .20 8 21 8.1 .21 8.2 39 9 (Command).45 9.1 45 10 55 10.1 .55 10.2 59 11 .84 11.1 84 11.2 84 11.
3、3 .84 11.4 .84 12 (UI) .85 12.1 .85 12.2 .85 A( ) ( ).86 B( ) ( ).92 KS X 6928 3:2012 .98 KS X 6928 3:2012 ii . , , . , , . , . ISO . KS X 6928 . 1: 2: 3: KS X 6928 3:2012 3: Mobile Payment Mobile Card Part 3: Online Transaction 1 ( ) . 2 . . ( ) . KS X 6509, ID KS X 6922 1, IC 1: IC KS X 6922 2, IC
4、 2: KS X 6922 3, IC 3: KS X 6922 4, IC 4: , KS X ISO 639( ), KS X ISO/IEC 6506 1, ID 1: KS X ISO/IEC 6506 2, ID 2: KS X ISO/IEC 7816 1, ID IC 1: KS X ISO/IEC 7816 2, ID IC 2: KS X ISO/IEC 7816 3, ID IC 3: KS X ISO/IEC 7816 4, ID IC 4: KS X ISO/IEC 7816 5, ID IC 5: KS X ISO/IEC 8825( ), ASN.1 KS X IS
5、O/IEC 8859( ), 8 KS X ISO/IEC 10646, (UCS) , KS X 6928 3:2012 2 3 3.1 3.2 3.3 AUTH KEY 3.4 (Binary Coded Decimal) . . 3.5 Card Usage Profile 3.6 Data Group Identifier 3.7 Derivation Key Master Key 3.8 GPIN 3.9 ID 3.10 KMC Master Key 3.11 Lc KS X ISO/IEC 7816 Case 3, 4 TAL 3.12 Le KS X ISO/IEC 7816 C
6、ase 2, 4 TAL KS X 6928 3:2012 3 3.13 (Least Significant Bit) . 3.14 (Least Significant Byte) . 3.15 LPIN 3.16 Master Key 3.17 (Mobile Card) (Applet), USIM( RF ) SE(Secure Element) (NFC ) . 3.18 3.19 (Most Significant Bit) . 3.20 (Most Significant Byte) . 3.21 (Near Field Communication) NFC ( 10 cm )
7、 . RFID . NFC , . 3.22 Personal Identification Number 3.23 SD Secure Digital 3.24 SE (Secure Element) ( , , ) KS X 6928 3:2012 4 Smart Chip . 3.25 Session Key 3.26 Slot Mobile Card Chip Application . 1 Mobile Card Chip Application . 3.27 SMC KEY 3.28 SMI KEY (MAC) 3.29 Universal Integrated Circuit C
8、ard . SIM , . 3.30 3.31 . Key . 3.32 , . 4 AC AID APDU (Application Protocol Data Unit) AUTH KEY BCD (Binary Coded Decimal) C-APDU (Command APDU) CBC Cipher Block Chaining CID CLA Class Byte of the Command Message KS X 6928 3:2012 5 CUP Card Usage Profile CVM (Cardholder Verification Method) CVR DGI
9、 (Data Group Identifier) DK (Derivation Key) FCI File Control Information GPIN IAD (Issuer Application Data) INS Instruction Byte of Command Message Lc KS X ISO/IEC 7816 Case 3, 4 TAL Le KS X ISO/IEC 7816 Case 2, 4 TAL LPIN LSB (Least Significant Byte) lsb (Least Significant Bit) MAC (Message Authen
10、tication Code) MK (Master Key) MSB (Most Significant Byte) msb (Most Significant Bit) NFC (Near Field Communication) PAN PDOL PIN (Personal Identification Number) PPSE Proximity Payment Systems Environment R-APDU (Response APDU) RFU (Reserved for Future Use) SFI SK (Session Key) SMC KEY SMI KEY (MAC
11、) TLV (Tag Length Value) TR (Transaction) UICC (Universal Integrated Circuit Card) KS X 6928 3:2012 6 5 5.1 (8.) . 5.1.1 (BIT) 1 8 , b8, b7, b6, b5, b4, b3, b2, b1 . (msb) b8 , (lsb) b1 . 1 8 b8 b7 b6 b5 b4 b3 b2 b1 msb lsb 5.1.2 (BYTE) n Bn, Bn-1,B2, B1 . (MSB) Bn , (LSB) B1 . n BnBn-1 B2B1MSB LSB
12、5.1.3 . E_CBC( , ) : CBC D_CBC( , ) : CBC 5.1.4 . : MKXX(XX: ) : DKXX(XX: ) : SKXX(XX: ) KS X 6928 3:2012 7 5.1.5 10 2 16 . 2 b . ) 1101b: 13 2 16 h . ) 0Ch: 12 16 5.1.6 a Alphabetic, a z, A Z Alphabetic . . (a-z, A-Z ) an Alphanumeric, a z, A Z, 0 9, Alphanumeric . . (a-z, A-Z, 0-9, ) ans Alphanume
13、ric Special, Alphanumeric Special . , , , Application Prefered Name KS X ISO/IEC 8859 . b Unsigned Binary, Bit unsigned binary number bit . Binary : 2 b . 19 00 13 . cn Compressed Numeric numeric (Hex 0-9 ) . , Hex F . : 10 cn . 1234567890123 8 Hex 12 34 56 78 90 12 3F FF . n Numeric numeric(hex 0-9
14、) . , Hex 0 . Binary Coded Decimal(BCD) . : , 6 n12 . 12345 Hex 00 00 00 01 23 45 . KS X 6928 3:2012 8 var , bit . . 5.2 (Data Element) (data element) . ( , , , ) , . 5.2.1 (Data Objects) BER-TLV . BER-TLV KS X ISO/IEC 8825 , 2 3 (Tag), (Length), (Value) . TLV . a) (Tag) . (Tag) , 1 . KS X ISO/IEC 7
15、816 (Tag) (Tag) . 1 BER-TLV (Tag) b8 b7 b6 b5 b4 b3 b2 b1 0 0 (Universal) Class 0 1 Application Class 1 0 Context-specific Class 1 1 Private Class 0 1 1 1 1 1 1 (Tag) ( 2 ) 2 BER-TVL (Tag) (Tag) b8 b7 b6 b5 b4 b3 b2 b1 0 (Tag) 1 (Tag) X X X X X X X (Tag) b) (Length) value , . 1 3 . KS X 6928 3:2012
16、9 3 BER-TVL Length b8 b7 b6 b5 b4 b3 b2 b1 0 Value b7 b1 1 b7 b1 X X X X X X X Value / c) (Value) . (Value) . 5.2.2 (DOL) . TLV (Value) (Tag) (Length) , (Tag) . DOL , . GET PROCESSING OPTIONS GENERATE AC 1 2 . DOL . DOL . DOL . , DOL ISO padding . 5.3 (Command Format) 5.3.1 (Command APDU Format) com
17、mand header conditional body , 4 255 . CLA, INS, P1, P2 Command Header Conditional Body . CLA INS P1 P2 Lc Data Le Command Header Conditional Body 1 Conditional Body . KS X 6928 3:2012 10 4 CLA 1 INS 1 P1 1 1 P2 1 2 Lc 1 (Data ) DATA Le 1 Command APUD 4 . 5 Case 1 CLA INS P1 P2 2 CLA INS P1 P2 Le 3
18、CLA INS P1 P2 Lc Data 4 CLA INS P1 P2 Lc Data Le 5.3.2 (Response APDU Format) Response Body Trailer , 2 255 . Response Body DATA , Trailer (Status Words, SW)1, (Status Words, SW)2 . . DATA SW1 SW2 Response Body(Optional) Trailer(Mandatory) 2 6 Response ADPU DATA SW1 1 1 SW2 1 2 Conditional Body Comm
19、and-APDU Le byte string . SW1, SW2 . 5.4 (Status Word, SW) SW1, SW2 . (Status words) . KS X 6928 3:2012 11 3 Status Word . 7 SW SW1 SW2 90h 00h 61h XX XX 63h CXh X PIN 67h 00h 69h 82h AC 69h 83h 69h 84h 69h 85h 69h 86h 69h 88h MAC 6Ah 80h 6Ah 82h 6Ah 83h 6Ah 86h P1, P2 6Ah 88h 6Bh 00h P1, P2 6Dh 00h
20、 INS 6Eh 00h CLA 6Fh 00h ( ) KS X ISO/IEC 7816 62h 83h (Slot) 62h 91h (GPIN) (GPIN ) 62h 92h (LPIN) (LPIN ) 62h 93h (Slot) 62h 94h (Slot) KS X 6928 3:2012 12 7 SW ( ) SW1 SW2 62h 95h (Slot) 62h 96h 63h 10h 69h 90h (Slot) 69h 92h Terminal Usage Profile 69h 93h (GPIN) (PIN 0) 69h 94h (LPIN) (PIN 0) 69h 95h 69h 96h 69h 97h 69h 98h . KS X 6928 3:2012 13 6 6.1 , , . 4 , , . 6.1.1 , . 1. (UI) 2. APDU 3. CVM CVM CVM 4. 5. , KS X 6928 3:2012 14 5 1 6 2 6.1.2 , . . 1. ( , , ) 2. ( ) 3. , . KS X 6928 3:2012 15 7 6.1.3