如何解码包含在标记77中的APDU GPO响应

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

我关注了qazxsw poi教程,我收到了GPO命令的以下响应:

this

当我尝试解析响应时:

7716820239009410100101011002020018010200200102009000

有人可以帮助我获得应用程序交换配置文件(AIP)和应用程序文件定位器(AFL)的方法。该教程仅解释了标签80,参考书response tag = 77 AIP = ?? AFL = ?? 说标签EMV_v4.3_Book_3_Application_Specification超出了他们的解决方案范围。

java smartcard apdu emv tlv
1个回答
1
投票

您在返回GET PROCESSING OPTIONS命令时得到的响应是BER-TLV格式,并且解码如下:

77 16    [tag = Response Message Template Format 2, length = 22 bytes]
    82 02    [tag = Application Interchange Profile, length = 2 bytes]
        3900    [value = AIP]
    94 10    [tag = Application File Locator (AFL), length = 16 bytes]
        10010101100202001801020020010200    [value = AFL]

9000    [status word = no error]

要手动解码BER-TLV,您可以使用像77这样的在线解析器。要集成到您自己的应用程序中,您可能需要查看https://www.emvlab.org/tlvutils/

© www.soinside.com 2019 - 2024. All rights reserved.