×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    Apr 2004
    Location
    Vienna
    Posts
    321

    JavaCard & Mifare Access (6131)

    Is it possible (like on the 3220) to access the Mifare Memory thru the Java Card?
    Last edited by geri-m; 2007-04-11 at 23:48.

  2. #2
    Regular Contributor
    Join Date
    Feb 2007
    Location
    France
    Posts
    56

    Re: JavaCard & Mifare Access (6131)

    Yes I think but not tested yet. Maybe you can try with JetZ API.
    Modifying it to work with 6131 does not need much work.
    ExtSystem's sReadWriteMifare() method works similar to JCOP's method. Only difference is the first parameter defining what the method should do (read ExtSystem.MIFARE_PASSWORD_READ and write ExtSystem.MIFARE_PASSWORD_WRITE).

  3. #3
    Registered User
    Join Date
    Apr 2004
    Location
    Vienna
    Posts
    321

    Re: JavaCard & Mifare Access (6131)

    Okay, but where do I get the ExtSystem Library? It is neighter part of JCOP nor part of JetZ ...

  4. #4
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    53

    Re: JavaCard & Mifare Access (6131)

    Quote Originally Posted by geri-m
    Is it possible (like on the 3220) to access the Mifare Memory thru the Java Card?
    Sorry I don’t know the answer to this question.

    But I am interested to know:
    what is the advantage / disadvantage of between ‘Java Card Applet Access’ and ‘MIDlet Access’ to Internal Mifare Memory.

    Could you give an Use Case to visualize both access ways?

    Best regards.

  5. #5
    Registered User
    Join Date
    Apr 2004
    Location
    Vienna
    Posts
    321

    Re: JavaCard & Mifare Access (6131)

    Actually the answer ist quite simple: I don't want to have my keys for mifare access stored in J2ME Appliction. With the right efford an attacker could aquire the keys from the memory or by decompiling the Application Code and the "security" for my application would be gone. (I do need Mifare as I don't want to change my existing reader infrastructure ...)

    If I do have the keys in the JCOP Applet nobody would ever be able to get them. Additionally I could use AES/DES for encrypting data and save it encrypted in the Mifare Element. The seperation of data and code by splitting an application into JCOP and Mifare (if necessary) would be a good solution for me.

  6. #6
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    53

    Re: JavaCard & Mifare Access (6131)

    Yes I see the advantages, thank you.

    The Applet solution has the personal key and DES/AES crypto functions available in internal smartcard whereas MIDlet solution has the key in Phone and need additional crypto libraries like SATSA or third party libs.

    Splitting code and data:
    Are not the same in both access ways? Code in Applet or MIDlet, data is in Mifare Memory?

  7. #7
    Registered User
    Join Date
    Apr 2004
    Location
    Vienna
    Posts
    321

    Re: JavaCard & Mifare Access (6131)

    ad SATSA) Actually it would make sense if "new" mobile devices would use the cipher algorithms of a smartcard/SIM Card/Secure element in order to provide "good" protection against attackers. Everything running on host controller or in the memory of the device can/could be traced therefore is not secure. Actually the SATSA also provides a package for communication with a smartcard using RMI or APDUs thus if the SATSA is fully available on a device, it would make sense to make use of the smartcard for the "critical" code.

    ad Splitting Code & Data) My current view for an NFC application is the following:
    - the GUI is implementend in J2ME (or Symbian or PCC)
    - the controller/application logic (as much as possible) is implemented on the Java Card/Secure Element
    - the Memory of the MIfare Element is used for storing data (for backward compatibility)

    This makes me less plattform dependend when moving applications to a different device, as long as it features a Java Card. Actually this is the problem with the 6131. The "standard" JetZ Engine is not available on the JavaCard as the Operating Systems is not from IBM but from G&D (Venyon) => plattfrom matters in this case.

    I'm currently looking a bit further, as I'm working also with Java Card SIM cards too, where I can implement the GUI on the SIM using SAT. There I don't even need the J2ME at all for a GUI.

    But you are right too: J2ME application - Mifare Data would have a similar (in my view less secure, less plattform independed) impact.

  8. #8
    Regular Contributor
    Join Date
    Feb 2007
    Location
    France
    Posts
    56

    Wink Re: JavaCard & Mifare Access (6131)

    Quote Originally Posted by geri-m
    My current view for an NFC application is the following:
    - the GUI is implementend in J2ME (or Symbian or PCC)
    - the controller/application logic (as much as possible) is implemented on the Java Card/Secure Element
    - the Memory of the MIfare Element is used for storing data (for backward compatibility)
    This is exactly what a NFC application should look like. Especially for mobile payment or ticketing application.


    Quote Originally Posted by geri-m
    The "standard" JetZ Engine is not available on the JavaCard as the Operating Systems is not from IBM but from G&D (Venyon) => plattfrom matters in this case.
    Is it SmartCafe OS ? JetZ API should work with a some small modif. Someone from Nokia can confirm ? What exactly are the changes ?


    Quote Originally Posted by geri-m
    I'm currently looking a bit further, as I'm working also with Java Card SIM cards too, where I can implement the GUI on the SIM using SAT. There I don't even need the J2ME at all for a GUI.
    Did not know about that, do you know where we can buy those Java SIM Card ?

  9. #9
    Registered User
    Join Date
    Apr 2004
    Location
    Vienna
    Posts
    321

    Re: JavaCard & Mifare Access (6131)

    Quote Originally Posted by tdelazzari
    Is it SmartCafe OS ? JetZ API should work with a some small modif. Someone from Nokia can confirm ? What exactly are the changes ?
    Actually SmartCafe is an IDE (450 EUR) -- I just want to have the ExtSystem lib and use Eclipse. Is it possobile to download it/obtain it somewhere?

    Quote Originally Posted by tdelazzari
    Did not know about that, do you know where we can buy those Java SIM Card ?
    We do have a deal with vodafone group They bought the card for us from Gemalto and did the personalization. The "problem" is, that you need the keys for the cards and on the other hand a card that is working in the network of the MNO.

    Btw: is there somebody around with a Sagem my700X that would be kind the answer some questions?

  10. #10
    Regular Contributor
    Join Date
    Feb 2007
    Location
    France
    Posts
    56

    Re: JavaCard & Mifare Access (6131)

    Did you find the ExtSystem lib ? Is it included in the SmartCafe toolkit ? Do you know where to buy this toolkit ?
    ExtSystem is just a package name, I'll try with a modified JetZ API.
    Last edited by tdelazzari; 2007-04-20 at 11:34.
    Finalist, First European NFC Competition 2007
    2nd Prize Research Track, NFC Forum Global Competition 2008
    NFC Project Manager at the University of Nice Sophia-Antipolis, France
    http://tdelazzari.blogspot.com

  11. #11
    Registered User
    Join Date
    Apr 2004
    Location
    Vienna
    Posts
    321

    Re: JavaCard & Mifare Access (6131)

    ExtSystem is included in the smartcafe. the IDE can be ordered via G&D and costs 450 EUR

Similar Threads

  1. Nokia 6101 Locked 2 TMobile Midlet can't access internet...
    By Jason Glass in forum Mobile Java Networking & Messaging & Security
    Replies: 45
    Last Post: 2007-11-14, 02:19
  2. Internal Mifare card 6131
    By tdelazzari in forum Near Field Communication
    Replies: 4
    Last Post: 2007-08-23, 15:24
  3. Gateway IP address in Nokia 6600 access point
    By yashodhan in forum General Development Questions
    Replies: 0
    Last Post: 2004-10-01, 12:22
  4. Why use direct screen access?
    By Kalderas in forum Symbian C++
    Replies: 3
    Last Post: 2003-10-10, 14:29
  5. Replies: 0
    Last Post: 2003-02-24, 04:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •