SCP03卡密码计算

问题描述 投票:0回答:1

根据GlobalPlatform安全通道协议'03'卡规范v2.3 –修订版DVersion 1.1.2,我试图验证我从eUICC收到的密码,以便为目标ISD-P建立SCP03 。我可以手动生成并验证卡挑战,但无法生成卡密码。我想念什么?

Host challenge: AF6B2B0E174BA140
Card challenge: E7359F8EEC577E51
Card cryptogram: 86B91FBEA0E67D33
Sequence Number: 000007

keyMAC = keyENC = AA75D7A83CF20FE79C606FF1B7E2CEB4

L = 0040
derviationConstant = 00
Label = 11 x '00' + derviationConstant
context = host challenge + card challenge

input data for CMAC = Label + '00' + L + '01' + context

S-MAC = CMAC('00000000000000000000000600008001AF6B2B0E174BA140E7359F8EEC577E51', keyENC)
(which is S-MAC: D8CA1E32C16EC4528E4BAC561F029DE3)

cardCryptogram = CMAC('00000000000000000000000000004001AF6B2B0E174BA140E7359F8EEC577E51', S-MAC)
(which gives EE97D403A7508CF2D6D0E6002C0FE126 that its 8 most left bytes are not as same as what I got from the eUICC)
cryptography smartcard javacard emv globalplatform
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.