[英]ISO 7816-4 How to construct this C-APDU to write?
I'm interfacing with a smart card (ISO-7816-4)我正在使用智能卡 (ISO-7816-4)
I have been given the below C-APDU to read a value:我得到了下面的 C-APDU 来读取一个值:
CLA = 0x90
INS = 0x4C
p1 = 0x00
p2 = 0x00
length = 4
parameters = empty
Which returns the response 00000 2f4 9000返回响应 00000 2f4 9000
(9000 being what I understand to be the SW1/SW2, and the 2f4 part of that response contains the relevant data that I want to change) (9000 是我理解的 SW1/SW2,该响应的 2f4 部分包含我想要更改的相关数据)
Given this provided info, is it possible to determine what modifications to this C-APDU would I need to make to instead UPDATE this data (2f4) to be a different value?鉴于此提供的信息,是否可以确定我需要对此 C-APDU 进行哪些修改才能将这些数据 (2f4) 更新为不同的值?
I am quite new to this, and am trying to learn, so thank you for your responses.我对此很陌生,并且正在努力学习,所以感谢您的回复。
My understanding is that CLA of 90
means a proprietary command set and an instruction (INS) 4C
does not match any of the industry instruction commands.我的理解是
90
的 CLA 意味着专有命令集和指令 (INS) 4C
与任何行业指令命令都不匹配。
Thus as this looks like a proprietary read
command it is most likely that the update
command is proprietary to the hardware you are issuing it to, so impossible to guess what it should be.因此,由于这看起来像是一个专有的
read
命令,因此update
命令很可能是您将其发布到的硬件专有的,因此无法猜测它应该是什么。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.