1、 KSKSKSKSKSKSKSK KSKSKS KSKSK KSKS KSK KS KS X 6928 1 1:KS X 6928 1:2012 2012 3 28 http:/www.kats.go.krKS X 6928 1:2012 : e- ( ) ( ) () () ( ) : (WG1) () ( ) SKTelecom KB : (http:/www.standard.go.kr) : :2012 3 28 2012-0132 : e- : ( 02-509-7262) (http:/www.kats.go.kr). 10 5 , . KS X 6928 1:2012 i ii
2、1 1 2 1 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 .14 6.3 (Mobile Card) .14 6.4 (Life Cycle) 15 6.5 (Mobile Card) (AID) .17 7 .18 7.1 .18 7.2 .18 7.3 .22 8 (Data) 24 8.1 (Issuing Data) .24 8.2 (key Data).29 8.3 (Transaction Data)31 8.
3、4 (log Data) 49 9 (Command).51 9.1 51 9.2 (Transaction Command).54 9.3 (Management Command)61 9.4 (Issuer scripts) 65 10 71 10.1 .71 10.2 .73 A( ) ( ).86 B( ) ( ).92 KS X 6928 1 98 KS X 6928 1:2012 ii . , , . , , . , . ISO . KS X 6928 . 1: 2: 3: KS X 6928 1:2012 1: Mobile payment Mobile card Part 1:
4、 General 1 , , . 2 . . ( ) . KS X 6509, ID KS X 6922 1, IC 1: IC KS X 6922 2, IC 2: KS X 6922 3, IC 3: KS X 6922 4, IC 4: , KS X ISO 639( ), 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/
5、IEC 6506 1, ID 1: KS X ISO/IEC 6506 2, ID 2: KS X ISO/IEC 8825( ), ASN.1 KS X ISO/IEC 8859( ), 8 KS X ISO/IEC 10646, (UCS) , ISO 3166(all parts), Codes for the representation of names of countries and their subdivisions ISO 4217, Codes for the representation of currencies and funds KS X 6928 1:2012
6、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, Case 2, 4 TAL KS X 6928 1:2012 3 3.13 (Least Significant Bit)
7、 . 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 ) . RFID . NFC , . 3.22 Personal Identification Number(PIN) 3
8、.23 SD Secure Digital 3.24 SE(Secure Element) KS X 6928 1: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 Card . SIM , 3.30 3.31 . Key . 3.32 , . 4 AC AID (AID) APD
9、U (Application Protocol Data Unit) AUTH KEY BCD (Binary Coded Decimal) C-APDU (Command APDU) CBC Cipher Block Chaining CID KS X 6928 1:2012 5 CLA Class Byte of the Command Message CUP Card Usage Profile CVM (Cardholder Verification Method) CVR DGI (Data Group Identifier) DK (Derivation Key) FCI File
10、 Control Information GPIN IAD 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 Authentication Code) MK (Master Key) MSB (Most Significant Byte) msb (Most Signific
11、ant 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 (SFI) SK (Session Key) SMC KEY SMI KEY (MAC) TLV (Tag Length Value) TR (Transaction) UICC (Universal Integrated Ci
12、rcuit Card) KS X 6928 1: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 B2 B1 MSB LSB 5.1.3 . E_CBC( , ) : CBC D_CBC( , ) : CBC 5.1.4 . : MKXX( XX : ) : D
13、KXX(XX : ) : SKXX(XX : ) 5.1.5 KS X 6928 1:2012 7 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 Alphanumeric Special, Alphanumeric Special . , , , Application Prefe
14、red 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) . , Hex 0 . Binary Coded Decimal(BCD) . : , 6 n12 . 12345
15、 Hex 00 00 00 01 23 45 . KS X 6928 1: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 7816 (Tag) (Tag) . 1 BER-TLV b8 b7 b6 b5 b4 b3 b2 b1 0 0 (Un
16、iversal) 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 b8 b7 b6 b5 b4 b3 b2 b1 0 (Tag) 1 (Tag) X X X X X X X (Tag) b) (Length) value , . 13 . KS X 6928 1:2012 9 3 BER-TVL b8 b7 b6 b5 b4 b3 b2 b1 0 Value b7 b1 1 b7 b1 X X X X X X X Value
17、/ c) (Value) . (Value) . 5.2.2 (Data Object List, DOL) (Data Object List) . TLV (Data) (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) command header conditional body , 4 255 . CLA, INS,
18、P1, P2 Command Header Conditional Body . CLA INS P1 P2 Lc Data Le Command Header Conditional Body 1 Conditional Body . KS X 6928 1:2012 10 4 CLA 1 INS 1 P1 1 1 P2 1 2 Lc 1 (Data ) DATA Le 1 Command APDU 4 . 5 Case 1 CLA INS P1 P2 2 CLA INS P1 P2 Le 3 CLA INS P1 P2 Lc Data 4 CLA INS P1 P2 Lc Data Le
19、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 APDU DATA SW1 1 1 SW2 1 2 Conditional Body Command-APDU Le byte string . SW1, SW2 . 5.4 (Statu
20、s Word, SW) SW1, SW2 . (Status words) . KS X 6928 1: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 INS 6Eh 00h CLA 6Fh 00h ( ) KS X ISO/IEC 7816
21、62h 83h (Slot) 62h 91h (GPIN) (GPIN) 62h 92h (LPIN) (LPIN) KS X 6928 1:2012 12 7 SW ( ) SW1 SW2 62h 93h (Slot) 62h 94h (Slot) 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 1:2012 13 6 6.1 4 USIM SE(Secure Element) (Applet) , . (Slot) . , . . . PIN( ) , . KS X 6928 1:2012 14 6.2 5 . USIM SE(Secure Element) . ,