如何将钥匙导入MUSCLE卡?

时间:2013-07-19 06:01:02

标签: applet smartcard apdu

我正在尝试将一个密钥导入到卡中,但它的响应为6F00(UNKNOWN ERROR)。我导入密钥的步骤是

  1. 加载(MUSCLE)小程序
  2. 初始化小程序
  3. 验证引脚
  4. 创建id为FF FF FF FE)的对象:
  5.   

    - > B0 5A 00 00 0E FF FF FF FE 00 00 00 44 00 00 00 00 00 00 00
      < - 90 00

    1. 写入对象
    2.   

      - > B0 54 00 00 8D FF FF FF FE 00 00 00 00 84 00 01 00 80 00 00 00 00 00 00 00 00 00 00今日00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00今日00 00 00 00 00 00 00日00 00 00 00 00 00 00日00 00 00 00 00 00 00 00 00日00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00今日00 00 00 00 00 00 00 00日00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00年代>   < - 90 00

      1. 导入密钥
      2.   

        - > B0 32 04 00 07 00 00 FF FF 00 00 00 00
          < - 6F 00

        请为上述问题提供解决方案。

1 个答案:

答案 0 :(得分:0)

如果您仍在寻找解决方案:导入密钥时,7个字节似乎有点高......;)

数据块中的ACL只有六个字节,因此可能会导致您的错误。以下“可选参数”是AFAIK完全未使用的。