- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在尝试反编译 capfile 时研究 JCVM 规范,我想到了以下问题:
描述符组件(6.13)说:
The Descriptor Component provides sufficient information to parse and verify all elements of the CAP file. It references, and therefore describes, elements in the Constant Pool Component (Section 6.7, “Constant Pool Component” on page 6-14), Class Component (Section 6.8, “Class Component” on page 6-21), Method Component (Section 6.9, “Method Component” on page 6-35), and Static Field Component (Section 6.10, “Static Field Component” on page 6-41). No components in the CAP file reference the Descriptor Component.
组件模型 (6.1) 说:
A complete CAP file must contain all of the required components specified in this chapter. Three components are optional: the Applet Component (Section 6.5, “Applet Component” on page 6-12), Export Component (Section 6.12, “Export Component” on page 6-47), and Debug Component (Section 6.14, “Debug Component” on page 6-57).
但在安装(6.2)中却说:
COMPONENT_Descriptor (optional)
而且我还没有观察到Load命令的Global Platform Load中的Descriptor组件!那么问题来了,描述符的实际用途是什么以及为什么小程序不需要在卡上工作?相反,JCVM 规范 3.0.1 及更高版本没有将描述符组件列为可选。
最佳答案
And I havent observed the Descriptor component in the Global Platform Load for Load commands! So the question arises what the descriptor is actually used for and why it is not neccesary for the applet to work on-card?
Descriptor.cap
组件提供用于解析和验证 CAP 文件中其他元素的信息。因此,字节码验证 (BCV) 需要 Descriptor.cap 组件,该验证是在卡外完成的,对于卡操作并不重要。它引用并指向不同 CAP 文件组件的信息,但没有组件(强制组件)指向 Descriptor 组件。因此,无需将此组件加载到卡上。因此,您在Global Platform [Load] 命令中看不到它。
如以下 JCVM 规范 3.0.5 规范中所定义。
描述符组件提供了足够的信息来解析和验证 CAP 的所有元素文件。它引用并因此描述了常量池组件中的元素(6.8 常量池组件)、类组件(6.9 类组件)、方法组件(6.10 方法组件)、和静态场组件(6.11 静态场组件)。 CAP 文件中没有组件引用描述符组件。
In contrary, JCVM spec 3.0.1 and greater don't list the descriptzor compnent as optional.
他们将 Descriptor.cap
描述为以下 JCVM 规范 3.0.5(第 6.3 节)中 CAP 文件组件安装顺序中的可选
。虽然规范不一样,但很难说为什么他们在你提到的规范中没有提到这一点。
关于javacard - JavaCard 规范 2.2.2 及以下版本中 cap 文件中的可选描述符组件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52834572/
我已经开始使用 JavaCards 并试图掌握 CLA 字节的含义。 如果阅读RFC 5.4.1 Class byte 5.4.1 Class byte According to table 8 us
我有一张 Gemalto Top DL v2 java 卡。当我 list 内容时,卡中加载了很多包: GlobalPlatformPro:> gp -visa2 -key 47454D5850524
我想读取 Java 卡上的 TLV 编码证书(NXP JCOP J3D081、JCOP 版本 2.4.2、Java 卡版本 3.0.1 Classic)。 cap 文件已成功创建,但当我尝试将其安装到
我想知道 JavaCard 中的 Util.* 函数是否通常是抗侧 channel 的。 是否存在一些具有侧 channel 抗性 Util.* 功能的 JavaCard? 我查看了几个公共(publ
我想配置一个 JavaCard,以便它只允许安装由特定 key 签名的小程序。我不确定这个签名是否是 cap 文件格式的一部分。我已经可以通过 GlobalPlatformPro 中的代码从 Andr
在尝试反编译 capfile 时研究 JCVM 规范,我想到了以下问题: 描述符组件(6.13)说: The Descriptor Component provides sufficient info
如您所知,OTA 消息或无线消息是特制的二进制 SMS 消息,移动运营商使用这些消息向 SIM 卡发送 APDU 命令以进行管理。例如,他们可以使用此类消息在 SIM 卡上安装或删除小程序。 我想知道
我正在寻找一个使用Java Card在SIM卡上运行的简单初学者程序。谁能给我一些入门的基本信息?我已经看过一些关于工具包api的描述,但是我正在寻找类似的东西:sim卡支持哪些功能,如何将我的代码上
我有一个空的 Javacard,如下所示: user@system$ java -jar gp.jar --list ISD: A000000003000000 (OP_READY) Pri
我是智能卡开发的新手。请帮助我了解如何开始。 Javacard和JCOP之间有什么关系? 如何将JCOP版本映射到GlobalPlatform Card Specification? 例如,JCOP
我正在尝试理解java卡的概念,我有一些疑问,我想与大家分享,也许你能给我任何最好的建议。 //Jcop- 我在某处读到 Java Card OpenPlatform (JCOP) 是由 IBM Zü
java卡现在有什么用?该文档要么非常旧,要么非常稀疏。谷歌搜索了一段时间后,这是我的想法: eID:使用私钥签署文档哈希,由中央机构(政府)颁发 - 签署法律文件 唯一 ID - 通过 ID 识别(
我想在 Linux 计算机上生成证书,将其传输到卡并在那里加密。然后将其存储并稍后取回。我想知道如何在卡上获取 4k RSA 数据之类的东西。它可以与 APDU 配合使用吗? 最佳答案 证书一般不需要
我尝试使用oracle java card development kit 3.0.5u2命令行工具。 我用的是netbeans生成的cap文件 我用 verifycap.bat在我的帽子上以及 sd
有人可以给我一些关于如何使用 javacard 签名并验证它的小建议吗?我想我在签名生成和验证方面做错了: ... SignatureMessageRecovery sig; ... private
我正在尝试在卡上签署一条消息并在卡外验证它。 结果总是假的。 我可能获取的模数和指数不正确。有什么想法吗? Java 小程序代码: protected MainApplet() { try {
我想开发一个使用 java 卡的生物识别指纹认证,我发现 javacard 2.2 提供了 APIs (javacardx.biometry) 来做到这一点,但我没有找到任何关于Match On Ca
我注意到我的智能卡(带有 Omnikey 5121 读卡器的 NXP J2E145、J3A081、J3C145)上出现了一些非常奇怪的行为:调用 JavaCard 方法后立即断电 JCSystem.r
我有一个包含我的小程序的双接口(interface) Java 卡。我想对来自不同接口(interface)的单个命令有两个不同的 APDU 响应。 例如,当从接触界面接收到命令时,我想用“Con
我一直在查看 JavaCard API 和示例,但找不到对更高级别数据集合(如 List、ArrayList、HashMaps 等)的任何引用? 我错过了什么吗? 我知道 JavaCard 环境的资源
我是一名优秀的程序员,十分优秀!