MIFare DESFire EV1 Read File issue (swift)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MIFare DESFire EV1 Read File issue (swift)

653 次查看
Truck
Contributor I

Hello everyone,

I'm currently develop in swift for reading the data in MIFare DESFire EV1 card.

The procedure i've already done is get Application IDs, selection Application IDs, get File IDs.

However, I got the problem for the authentication with AES.

Can anyone help me for the procedure with the authentication? I should do the authentication before reading date? or reading data need some decode key in authentication response?

What is the commad I should use with "sendMiFareCommand"? 

authenticateCommand: [UInt8] = [0xAA, 0x00] ? or 

authenticateCommand: [UInt8] = [0x90, 0xAA, 0x00]?

 

Thank you.

标记 (3)
0 项奖励
回复
1 回复

609 次查看
KaiLi
NXP TechSupport
NXP TechSupport

Hello @Truck 

One point needs to pay attention, if you want to use AES cypto, then you create the AID should be the AES type, that is to say, the type of cyprto AID and  the authentication key is the same. So , please make sure whether your Application is the AES type.

0 项奖励
回复