Re: I have problem in AUTHENTICATION

Forum MIFARE SmartCard IC`s MIFARE DESFire I have problem in AUTHENTICATION Re: I have problem in AUTHENTICATION

Re: I have problem in AUTHENTICATION

25. April 2015 at 10:54
About crc I am not sure about it, maybe try to google it.

About Creating file. This is how it's done in Java:

createFile(int fileNo, DESFireFile.FileSettings file)

-> fileNo - File to be created with this file number.
-> file - File to be created with these file settings which are present in FileSettings Object.

DESFireFile.StdDataFileSettings(DESFire.CommunicationType comSettings,
int readAccess,
int writeAccess,
int readWriteAccess,
int changeAccess,
int fileSize)

comSettings - Communication settings used while access the file. Supported data communication types.
Plain
MACed.
Enciphered.
readAccess -
Take values from 0x00 to 0xF.
0xE : free access.
0xF : read access denied.
0x00 to 0x0d --> authentication required with the key number for read access.
writeAccess -
Take values from 0x00 to 0xF.
0xE : free access.
0xF : read access denied.
0x00 to 0x0d --> authentication required with the key number for read access.
readWriteAccess -
Take values from 0x00 to 0xF.
0xE : free access.
0xF : read access denied.
0x00 to 0x0d --> authentication required with the key number for read access.
changeAccess -
Take values from 0x00 to 0xF.
0xE : free access.
0xF : read access denied.
0x00 to 0x0d --> authentication required with the key number for read access.
fileSize - required file size of the data files.



As said, this is using MIFARE SDK, but I think it should be similar using C language. Not sure, but maybe you can try it out.

My Example to create a STD File in Java:

desFire.createFile(11,
new DESFireFile.StdDataFileSettings(DESFire.CommunicationType.Plain, 0, 0, 0, 0, 1024));


Not sure if any of these will help your case. But this is what I got.
Good luck nimaltd!

David
+ 0  |  - 0