如何处理非标准的Apdu?

huangapple go评论60阅读模式
英文:

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).

huangapple
  • 本文由 发表于 2020年8月26日 21:31:10
  • 转载请务必保留本文链接:https://go.coder-hub.com/63598799.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定