Page | 70
errorMessage = (PRINTABLESTRING)
KCV = (OCTET STRING) -- 3 bytes, algorithm refer to x9.24
}
}
}
11.8.2
3C – Set Working Key
Working key includes PIN/PIN Master /PIN Pairing/ Data Pairing/ MAC Key.
This command should be issued after the Card Reader and PINPAD have established the
CR_PINPAD_MASTER_DUKPT_KEY.
Note:
Yellow: Optional block-KeyIndex Green: Optional block-KeySlot Red: Optional block-KSN/KeyID
KBH for PIN DUKPT Key: B0136B1TX00E03000108000102080000KS18FFFF0000000000000000
MK/SK PIN Master Key: B0112K0TB00E02000108000802080000
DATA Pairing DUKPT Key: B0136B1TX00E03000108000402080000KS18FFFF0000000000000000
PIN Pairing DUKPT Key: B0136B1TX00E03000108000302080000KS18FFFF0000000000000000
MAC Key: B0136B1TX00E03000108000502080000KS18FFFF0000000000000000
Command
:
Task ID
'65’ or '75’
Function ID
'3C’
‘46’
Length
Length of data
Data
•
Length of Encrypted key ASN.1BLK
•
Encrypted key ASN.1 BLK, using TR31_B
•
Length MASTER_DUKPT_KEY_KSN
•
MASTER_DUKPT_KEY_KSN
Encrypted key ASN.1 structure::= Sequence {
Encrypted key ASN.1 structure version = 1 (INTEGER) Keys ::= Set {
keyinfo ::= Sequence {
TR31Key = (PRINTABLESTRING)
keyType = (INTEGER)
ksn = (OCTET STRING) -- If keyType is not DUKPT,
00000000000000000000
keySlot = (INTEGER)
keyName = (PRINTABLESTRING) KCV = (OCTET STRING) -- 2 bytes
}
}
}