JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html
https://ftsafe.en.alibaba.com/index.html
How can I select and read EF and DF data?
How can I select and read EF and DF data?
I would like to create EF and DF with some data and store it in smart card.
Then I would write an applet to read these data. Is it possible? If I can do this, how can I select and read EF and DF data?
Then I would write an applet to read these data. Is it possible? If I can do this, how can I select and read EF and DF data?
- horse dream
- Posts: 76
- Joined: Thu May 21, 2015 11:48 pm
- Points :140
- Contact:
Re: How can I select and read EF and DF data?
You have to implement a proprietary version of CREATE FILE and the ISO versions of READ BINARY and UPDATE BINARY yourself.
Usually the files consist of an (object containing a) Java Card byte array in EEPROM (just new byte[size]) for the file and meta information - maybe also in a byte[]) such as read/write access conditions.
A DF may consist of EF's, objects such as keys, PIN's, access conditions. The applet itself is a named DF, but you can create a specific CREATE FILE for creating DF's. You would of course have to support the DF selection as well within SELECT by ID.
Usually the files consist of an (object containing a) Java Card byte array in EEPROM (just new byte[size]) for the file and meta information - maybe also in a byte[]) such as read/write access conditions.
A DF may consist of EF's, objects such as keys, PIN's, access conditions. The applet itself is a named DF, but you can create a specific CREATE FILE for creating DF's. You would of course have to support the DF selection as well within SELECT by ID.
- UNKNwYSHSA
- Posts: 630
- Joined: Thu May 21, 2015 4:05 am
- Points :3055
- Contact:
Re: How can I select and read EF and DF data?
You can look specification ISO7816-4 for more details.
Select DF/EF: the SELECT command;
Read/Write EF: READ BINARY/WRITE/UPDATE BINARY command.
Select DF/EF: the SELECT command;
Read/Write EF: READ BINARY/WRITE/UPDATE BINARY command.
sense and simplicity
Who is online
Users browsing this forum: No registered users and 61 guests