Mifare应用程序目录管理? [英] Mifare Application Directory Management?

查看:227
本文介绍了Mifare应用程序目录管理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

[请仅在您的答案中考虑1k的经典卡片。 ]

[ Please only consider 1k classic cards in your answers. ]

我希望在RFID领域获得一点行业知识。具体来说,使用MIFARE MAD(Mifare应用程序目录)。我了解其架构,从审查恩智浦发布的MIFARE MAD文档位于这里:

I am hoping to gain a bit of industry knowledge in the realm of RFID. Specifically, with the MIFARE MAD (Mifare application directory). I understand its architecture from reviewing the MIFARE MAD documentation published by NXP located here:

  • http://www.nxp.com/documents/application_note/AN10787.pdf

但是,从这个文档中可以看出几个问题。

However, from this document a few questions arise.

谁管理给定卡上的初始MAD目录?我知道制造商可以在扇区0/16中分配预先初始化的MAD 1,2或3的卡。如果读取了卡,MAD尚未放在卡上,标准是什么?在这种情况下,将自己的MAD写入卡是否合适?或者是否更适合强制客户使用MAD预先购买卡?

Who manages the initial MAD directory on a given card? I know that manufactures may distribute cards with MAD 1, 2, or 3 pre-initialized in sector 0/16. What is the standard if a card is read which the MAD has yet been placed on the card? Would it be appropriate to write my own MAD to the card in this case? Or is it more appropriate to force clients to purchase cards with MAD preinstalled?

给定一个标准的MIFARE Classic 1k卡,只有两个16字节的扇区0块,MAD目录可能驻留。这为MAD目录提供只有32个字节。注册AID的列表似乎比32个字节大得多。如果我正在寻找的AID没有在MAD中编入索引,我应该采取什么过程?

Given a standard MIFARE Classic 1k card there are only two 16 byte blocks of sector 0 which the MAD directory may reside. This provides only 32 bytes for the MAD directory. The list of registered AIDs seems to be much larger than the 32 bytes. What process should I take if the AID I am looking for is not indexed in the MAD?

给定位于这里
什么是识别数据所在的扇区的一般过程是什么?因此,从列表中选择一个随机AID表示已注册到Verifone的0034如何识别数据所在的扇区?如何识别数据是否位于多个扇区?

Given a specific AID from the list of AIDs located here what is the general process for identifying which sector the data resides? So picking a random AID from the list say 0034 which is registered to Verifone how do I identify which sectors the data is located? How do I identify if the data is located in multiple sectors?

推荐答案

什么是MAD版本1,2和3?



< > MAD版本1和2与MIFARE Classic卡一起使用。 MAD版本1使用卡的扇区0将剩余扇区(扇区1..15)分配给特定的应用(每个扇区可以分配给指示管理/使用这些扇区的应用的一个应用ID)。 MAD版本2是与MIFARE Classic 4K卡一起使用的MAD v1的扩展。 MAD版本2使用扇区16作为附加目录,将4K特定扇区(扇区17..39)分配给应用程序。

What is MAD version 1, 2, and 3?

MAD version 1 and 2 are used with MIFARE Classic cards. MAD version 1 uses sector 0 of the card to assign the remaining sectors (sectors 1..15) to specific "applications" (each sector can be assigned to one application ID indicating the application that manages/uses those sectors). MAD version 2 is an extension of MAD v1 that is used with MIFARE Classic 4K cards. MAD version two uses sector 16 as an additional directory to assign the 4K-specific sectors (sector 17..39) to applications.

MAD版本3与MIFARE DESFire一起使用(EV1)卡。由于您特别要求MIFARE Classic 1K,这可能是您的问题的主题。

MAD version 3 is used with MIFARE DESFire (EV1) cards. Since you specifically asked for MIFARE Classic 1K, this is probably off-topic for your question.

通常,MAD将由发卡机构管理。因此,发卡的人也将启动MAD部门。

Typically, the MAD would be managed by the card issuer. Thus, whoever issues the card would also initiate the MAD sector(s).

如果您碰巧找到一个已经包含数据但不使用MAD的卡,那么您通常会认为这是单一应用程序卡。由于已经使用该卡的应用程序可能不了解MAD概念,所以您将不能再在以后引入MAD。 (如果应用程序使用任何MAD扇区(扇区0或16)用于其他应用程序数据,则情况尤为如此。)

If you happen to find a card that already contains data but does not use the MAD, you would typically consider this a single-application card. Since the applications that already use this card would probably not understand the MAD concept, you would not be able to introduce a MAD later on. (That's particularly the case if the application uses any of the MAD sectors (sector 0 or 16) for other application data.)

见上文。通常以后介绍MAD是没有意义的。另外,如果这张卡已经在使用,你可能没有钥匙可以写入MAD部门(或任何其他(已使用的)扇区)。

See above. Usually it would not make sense to introduce a MAD later on. Also, if the card already is in use, you would probably not have the keys to write to the MAD sectors (or any of the other (used) sectors).

我不知道任何目录管理员服务,您可以购买空卡,配置的MAD,用户将能够在稍后由该经理将其特定的应用程序安装到卡上。

I'm not aware of any directory manager service where you could purchase empty cards with a pre-configured MAD and where users would be able to get their specific applications installed onto the cards later on by that manager.

实际上,MAD通常用于闭环一个发卡机构在其域内使用多个应用程序的卡(例如,使用这些卡作为访问控制系统的大学(我正在使用的一个)的一个卡片发行者的应用场景,用于闭环支付系统等)

In fact, the MAD is usually used in closed-loop application scenarios where one card issuer uses the cards for multiple applications within their domain (e.g. a university (right, I'm working for one) that uses these cards for an access control system, for a closed-loop payment system, etc.)

在MAD v1和V2中,每个AID都有16位(2字节)。由于MAD将扇区分配给应用程序,每个扇区在MAD中具有两个字节的时隙,其中分配扇区的AID将被存储。请参阅如何访问使用MIFARE应用程序目录结构的MIFARE Classic卡?

In MAD v1 and V2, each AID has 16 bits (2 bytes). Since the MAD assigned sectors to applications, each sector has a two byte slot within the MAD where the AID that a sector is assigned to will be stored. See How to access a MIFARE Classic card that uses the MIFARE Application Directory structure?.

您可以要求恩智浦注册您的应用程序)并为其分配AID。有关注册表格,请参阅 MIFARE应用程序目录应用笔记的附录。虽然该清单表明,恩智浦仍在采取新的注册,但是您应该记住,自2008年以来MIFARE Classic安全性已经破裂,MIFARE产品线中有更新的产品将更适合新的应用。

You could request NXP to register your application(s) and assign AIDs to them. See the appendix of the application note for the MIFARE Application Directory for the registration form. While the list suggests that NXP is still taking new registrations, you should keep in mind though that MIFARE Classic security is broken since 2008 and there are newer products in the MIFARE product line that would be more suitable for new applications.

请参见上文和如何访问使用MIFARE应用程序目录结构的MIFARE Classic卡? MAD中的每个插槽将AID分配给一个特定扇区。因此,您将阅读MAD部门,然后浏览AID的发生,通过累积所有事件,您将获得分配给该应用程序的所有扇区的列表。

See above and How to access a MIFARE Classic card that uses the MIFARE Application Directory structure?. Each slot in the MAD assigns an AID to one specific sector. Thus, you would read the MAD sectors and then browse them for the occurence of the AID, by accumulating all occurences you get a list of all sectors assigned to that application.

这篇关于Mifare应用程序目录管理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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