DESFire非EV1卡仿真 [英] DESFire EV1 card emulation

查看:1251
本文介绍了DESFire非EV1卡仿真的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Android设备上仿真的DESFire EV1卡。但是,我在如何与HCE使用的Mifare SDK(精简版或高级)相混淆。

I need to emulate a DESFire EV1 card on an Android device. However, I'm confused on how to use the Mifare SDK (lite or advanced) with the HCE.

是,即使可能吗?我需要启动的项目,我有一个关于如何将数据存储,并在DESFire门禁卡加密,但我结束了的事实,我需要在HCE使用的Mifare SDK大量的研究。

Is that even possible? I need to start the project and I had a lot of researches about how the data are stored and ciphered in the DESFire cards but I ended up with the fact that I need to use Mifare SDK on HCE.

推荐答案

首先,你不能使用MIFARE SDK效仿卡。该MIFARE SDK只提供阅读器端的功能。

First of all, you cannot use the MIFARE SDK to emulate cards. The MIFARE SDK provides reader-side functionality only.

二,你不能效仿采用Android HCE MIFARE DESFire非(EV1)卡全部功能。但是,您可以模拟的MIFARE DESFire非协议部分(更具体地说,你只能模仿ISO / IEC 7816-4帧(或ISO命令集或包本机命令集),且仅当$ P $由AID由ISO SELECT pceded命令)。如果这是足够取决于系统的读者方的要求。

Second, you cannot emulate the whole functionality of MIFARE DESFire (EV1) cards using Android HCE. However, you can emulate parts of the MIFARE DESFire protocols (more specifically, you can only emulate ISO/IEC 7816-4 framing (either ISO command set or wrapped native command set) and only if preceded by an ISO SELECT by AID command). If that's sufficient depends on the requirements of the reader side of your system.


  • 如果您请读者仅支持本地的DESFire命令集:不能使用Android HCE模拟相应的卡

  • 如果您的读者使用包裹本机命令集,但不启动与ISO SELECT(由AID)通信命令:不能使用Android HCE模拟相应的卡

  • 如果您的读者使用包装原生指令集,并开始与ISO选择通信(由AID)命令(MIFARE DESFire非的援助 D2760000850100 ):可以注册您的HCE服务为DESFire非援助和这种援助已被选定后,将能够接收所有包裹本机命令。

  • 如果您的读者使用ISO命令集,但第一个命令是不是一个ISO SELECT(由AID)命令:采用Android HCE不能效仿相应的卡

  • 如果读者使用ISO命令集,并开始与一个ISO选择通信(由AID)命令(在的MIFARE DESFire非AID或(带DESFire非EV1)为DESFire非应用之一的ISO AID):您可以注册为DESFire非AID的HCE服务(或特定应用程序的AID),将能够接收所有这种援助已被选定后,ISO命令。

  • If your reader only supports the DESFire native command set: You cannot emulate a corresponding card using Android HCE.
  • If your reader uses the wrapped native command set but does not start the communication with an ISO SELECT (by AID) command: You cannot emulate a corresponding card using Android HCE.
  • If your reader uses the wrapped native command set and starts the communication with an ISO SELECT (by AID) command (the AID of MIFARE DESFire is D2760000850100): You can register your HCE service for the DESFire AID and will be able to receive all wrapped native commands after this AID has been selected.
  • If your reader uses the ISO command set but the first command is not an ISO SELECT (by AID) command: You cannot emulate a corresponding card using Android HCE.
  • If your reader uses the ISO command set and starts the communication with an ISO SELECT (by AID) command (either for the MIFARE DESFire AID or (with DESFire EV1) for the ISO AID of one of the DESFire applications): You can register your HCE service for the DESFire AID (or the AID of the specific application) and will be able to receive all ISO commands after this AID has been selected.

请注意,有可能是授权问题,如果你模仿MIFARE DESFire门禁卡。

Note that there may be licensing issues if you emulate MIFARE DESFire cards.

这篇关于DESFire非EV1卡仿真的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆