zoukankan      html  css  js  c++  java
  • Extended APDU support

    http://pcsclite.alioth.debian.org/ccid_extended_apdu.html

    To be able to use an extended APDU you need to have:

    • A T=1 card
    • A smart card reader working in TPDU or Extended APDU

    A smart card reader can work using 4 different exchange levels:

    • Character
    • TPDU
    • Short APDU
    • Short and extended APDU

    The exchange level of a reader is contained in the dwFeatures field of the CCID descriptor.

    You can get this information using the parse command included in the driver source code.

    Character level: Only very few readers work using this method. I don't know if/how they support extended APDU.

    TPDU level: With this exchange level a lot of the work is done in the driver. In particular support of extended APDU is managed by the driver and the CCID driver implements it.

    Short APDU: These readers are easy to use at a driver point of view but are then limited to short APDU only. Support of extended APDU is then not possible.

    Some readers claim they support short APDU only but can use extended APDU when used with the manufacturer Windows driver. Maybe the Windows driver switches the reader in TPDU mode or something similar. That is not a documented CCID feature and so is not used in my CCID driver. If you can get information on this from the reader manufacturer I may include support of extended APDU for the reader in my driver.

    Short and extended APDU: Support of extended APDU is offered by the reader.

    you can send Extended APDU in T=0 as well but for that your card must be supported "javacardx.apdu". Please refer javadoc link

    Here is method to know what is supported by your card.

    00 A4 04 00 <length of Card manager AID> <AID> [Select card manager]

    00 20 00 00 08 <Card manager PIN> [verify card manager PIN]

    00 80 F2 20 00 02 4F 00 - [get status command with P1 20] and [Executable Load Files and Executable Modules 4F00]

    You will get all the package AID in response of this command then search for AID

    "A0000000620209".

    if available then javacardx.apdu is supported.

    For more info abt "Get status" command please refer GP 2.2.1

    An extended APDU is an APDU (command) with data and/or response of more than 256 bytes and up to 65536 bytes. See ISO 7816-4 for more details.

    The CCID driver supports extended APDU. But this support may be limited by the smart card reader itself.

  • 相关阅读:
    HDU 1042 N!
    linux上安装wps办公软件
    《UNIX环境高级编程》笔记--环境变量
    【StatLearn】统计学习中knn算法实验(2)
    Asp.Net验证控件浅析
    斜率小于0的连线数量-归并排序
    Printk与sched_clock_init的一点分析
    【数字图像处理】使用kmeans算法对TrueColor图片进行优化
    将 Shiro 作为应用的权限基础 三:基于注解实现的授权认证过程
    python中os/sys/platform模块区别
  • 原文地址:https://www.cnblogs.com/shangdawei/p/4605581.html
Copyright © 2011-2022 走看看