MiniSmart II
35
Data Key of RKI-KEK), and 4 bytes MAC is generated from data (detailed in below)
encrypted with
KBMK
(generated from
KBPK
,
KBPK
is generated from Data Key of
RKI-KEK). (
KSN
of RKI-KEK is advanced to next
KSN
. Refered as next-
KSN
hereafter.
Please see the below detailed algorithm.)
TR-31 Block data format is: KBH + KBH_OB
(Optional Block)
+ ASCII code
ASCII code MAC data.
2N bytes ASCII code Encrypted Key – N bytes Encrypted Key
16 bytes ASCII code MAC data – 8 bytes MAC data
Response Body
<ACK><6 bytes ASCII code MAC Result>
<NAK><Error Code>
Where:
<6 bytes ASCII code MAC Result> is 3 bytes MAC Result (MAC Result of Key)
Using 8/16 bytes Key as Key, ECB DES/TDES Encrypt 8/16 bytes 0s.