英文:
How to handle Non standard Apdu?
问题
我为旧有系统开发了Java小程序。我发现了非ISO7816的APDU标准。
Cla:0x80
Ins:0xFA
当我处理这个指令时,程序崩溃了。有没有办法处理这种情况呢?
英文:
I've developed Java applet for old existing system. And I found the non ISO7816 apdu standard.
Cla:0x80
Ins :0xFA
When I processed this command the applet crashed. Is there any way to handle this case?
答案1
得分: 1
唯一的非标准之处在于,ISO 7816并未定义此命令。否则,从不违反标准的角度来看,它肯定是符合标准的。
因此,您的应用程序似乎存在问题,未正确处理该场景(例如,对所有未被识别的命令发出SW_INS_NOT_SUPPORTED
)。
英文:
The only non-standard aspect is, that ISO 7816 does not define this command. Otherwise it surely is compliant with the standard in the sense that it does not violate it.
So your app seems at fault by incorrectly handling that scenario (like issuing SW_INS_NOT_SUPPORTED
for all commands not recognized).
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论