MIFare DESFire EV1 Read File issue (swift)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MIFare DESFire EV1 Read File issue (swift)

1,379 Views
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.

0 Kudos
Reply
1 Reply

1,335 Views
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 Kudos
Reply