Java card and RSA

Hello i want to know if someone have a begin of algo for the implementation of RSA in Java Card?
thank you very much

The first thing that you must do is to build a class that simulate BigInteger class; you have to define the four arithmetic operations(sum,multiply,division and subtraction) and then the modular operations which are required in RSA. See Donald Knuth, "The Art of Computer Programming vol.2"; it's a very interesting book about how implementing a class of arbitrary precision integers.

Similar Messages

  • Java card Applet RSA encryption Problems with Android

    hi all,I am new to java card development. I have used nxp jcop 31-36 java card and nexus s for testing the application.so i have faced lot of problems.first of all i want to encrypt data coming from the android app using RSA1024 and send back to the android application.there are the problems I faced
    1.RSA1024 and RSA2048 algorithms can't work with the nexus s Application.it means i can't receive any encrypt data from card.but when i test the application with eclipse jcop shell tool it is work properly.
    2.when i run the application in nexus s the application is crashed.it gives some wired sound when tap the java card to android phone.it may be java card application crashed or give some wired sound from android OS level.
    3.Then I Test the Application with Samsung S2. Sometimes it works but sometimes it crashed.in the S2 the encryption works fine(but we have to keep wile card 2 or 3 minutes).
    these are the steps i followed in established the connection i android phone.So fist i created the ISO dep connection and first select the Application(00A40400AID).Then using transive method i send data to java card.In the Java card in the installation i have created the RSA key pairs and get the RSA public key and private key.in some method i got the APDU buffer and read data and encrypt this data.Then those are send back to the card. First i want to know is there any problem in Android Os or JCOP 31/36 card.And other thing each time i requested to java crd is that need to reset the java card and how to reset the Java card.(some brief idea)

    Hi,
    1) Import android.smartcard libraries,
    2) Try to make a connection :
    ISmartcardConnectionListener connectionListener = new ISmartcardConnectionListener()3) create an instance of smartcardclient:
    smartcard = new SmartcardClient(this, connectionListener);4) get the list of readers :
    String[] readers = smartcard.getReaders();you can check if a specific reader is connected or nor with
    smartcard.isCardPresent(readers [0]);5) create a card channel and select your applet:
    cardChannel = smartcard.openLogicalChannel(cardReader, APPLET_AID);
    ICardChannel cardChannel = null;
    cardChannel = smartcard.openLogicalChannel(cardReader, APPLET_AID);6) you can send and receive APDUs with this line of code:
    byte[] response Apdu = cardChannel.transmit(commandApdu);Regards,
    Hana

  • Where can I buy Java Card and get the JCOP?

    I have searched this forums to find out where I can buy Java Card and get the JCOP, but most links are disconnected and information is incorrect.
    Recently, if someone purchase small amount of the Java Card and get the JCOP, please share your information with me.
    I contacted the Gemalto, but they only sell big amount of Java Card to customers and I also contacted the usasmartcard.com several times via e-mail, phone and fax but they did not answer for my call. it seems they closed their business.
    I really want the information where I can buy small amount of Java Cards and get the JCOP.
    I will appreciate your reply.
    Thanks

    I searched through google and found the following shops:
    http://www.motechno.com/ibm-java-card-jcop.0.html?gclid=CK_IrtOfkY8CFRF_TAodazMRFg
    http://www.smartcardgroup.com/shop.php
    http://www.smartcardsource.com/
    Regarding the JCOP Tools you should contact NXP. Searching this forum will also help you.

  • Help:java card and rfid

    I searched a lot about java card and rfid, but don't have a clear idea about the relationship between the two. Please help me....

    They have NO common grounds.
    A java card needs a real "smart" processor because it contains a Java Virtual Machine, can do crypto and other stuff. The cost to produce one is in the multi dollar range. Some java cards can communicate contactless by "radio".
    RFID is the term to describe a very primitive device, all it can do is report a unique identification (ID) and it does this contactless (RF). the cost to produce one is in the cent range. You can use it to track products or containers or other stuff.
    Since RFID is also a very popular buzzword these days, the exact meaning of RFID varies.
    Of course, you could use a java card to play RFID tag, but that would be
    very expensive. Java cards are usually used for bank cards and similar applications.

  • Java card and reader/writer prices

    hi...I would like to know how much is a java card and how much is a reader/writer? thanks.

    You should implement your own session handling mechanism since the only type of session that is supported by JavaCard is HTTP, in version JC v3 (Connected version).
    Actually, I'm not even sure an HTTP session would suit your requirements.
    The easiest way to implement a session flag in your proposed system would be via a timestamp (saved in the Java Card applet).
    What does the following line mean?
    DOEACC@VIVS wrote:
    www.omnikey.com is best place

  • Java Card and OCF

    I want to procure some Java Card, and on reader side i will be using Java card rmi client framework and OCF.
    I would like to know if a vendor says that its card support Java Card specification 2.2.1 is that enough for card to work with OCF or some thing else is also required.
    regards

    I want to procure some Java Card, and on reader side i will be using Java card rmi client framework and OCF.
    I would like to know if a vendor says that its card support Java Card specification 2.2.1 is that enough for card to work with OCF or some thing else is also required.
    regards

  • Java Card and J2ME

    Hi !
    I�m startying a project with java card, and , for example, I want to know if is possible an mobile phone consult a smart card status, how much credits he has ... etc.
    I Think I will use j2me too for this ... but It�s possible do this ?
    Thanks.
    []�s
    Johnny

    j2me is for programming in phone equipment. if you want to do something in sim card, I think that you must use java card also.
    sorry for my english

  • Java Card and SIM Card

    Hi all,
    can anyon eof u enlight me about the Java card and ordinary SIM card. Whether both are same or different?. If diffrent means can u give some more details too..
    Thanks in Advance
    Siva

    There are Java SIM cards on the market, and they comply with the Java Card specifications. Take a look at Schlumberger and Gemplu$ for more information.

  • Java card and PC/SC

    Hi,
    I am new to Java card and just start to play with the simulator. I am interested in buying a real card and PC/SC reader to have a real experience. Could anyone suggest a good card and the reader for it? Where I could buy it? I am in US.
    Thanks in advance!
    Newbie

    I bought a few of them in past but didn't work together. Not sure it is reader or card's problem. Do you think those two work together?
    http://www.usasmartcard.com/component/page,shop.product_details/flypage,shop.flypage/product_id,138/category_id,10/manufacturer_id,0/option,com_virtuemart/Itemid,26/
    and
    http://www.usasmartcard.com/shop/java-card_20/10404_137.html
    Thanks

  • Java Card and Elliptic Curves

    Hi all,
    has anyone ever used Elliptic Curve cryptography on a Java Card? I can't find any documentation and sample code about this topic, although it should be implemented in the new java card specifications.
    I would like to use ECC instead of RSA for encrypting a message and verifying a signature on a java card with a EC pubkey.
    If anyone could provide me with sample code or hints, that would be very helpful!
    Thanks in advance,
    Matthias

    has anyone ever used Elliptic Curve cryptography on a
    Java Card? I can't find any documentation and sample
    code about this topic, although it should be
    implemented in the new java card specifications.No, it can (not should) be implemented. The implementation of all cryptographic algorithms is optional.
    I would like to use ECC instead of RSA for encrypting
    a message and verifying a signature on a java card
    with a EC pubkey.
    If anyone could provide me with sample code or hints,
    that would be very helpful!The sample code wouldn't be too complicated to create (should be very similar to using RSA) but where do you execute this code? All emulators/simulators and the real Java Cards I know do not support ECC.
    I only heard rumours that "Trusted Logic" has Java Cards which support ECC, but I haven't checked that.
    Jan

  • Java Card and PKCS#11 or MS CSP

    Does anybody have any idea how Java Card could be integrated in an standard e-mail signing application, i.e. with Outlook, S/Mime, MS CSP and PC/SC or Netscape with PKCS#11 and PC/SC?
    My understanding is that with standard ISO Cards the connection e-mail client and smart card looks like this:
    | e-mail client | <-> | PKCS#11/MS CSP | <-> | ICC Service Providers | <-> | ICC Resource Manager | <-> | Interface Device Handler | <-> | Interface Device (SC reader) | <-> | Smart Card |
    How does this scenario look like with java cards?

    Hello,
    Thank you for the replay. I'm sorry for the delay, but I wasn't in my office a long time.
    Do you have any further informations about that scenario? It would help me a lot.
    I wand to know for example, how exactly the interface between MS CPS and the JAVA card app (the javacardx.crypto(Enc) packages) is implemented. Thank's in advance
    kay.

  • Default applets on brand new java card and spec support

    Hi,
    I have got brand new java card reader and real java card.
    I want to just access it using Java and see if I can access stuff on the java card before i go ahead with next things.
    I was thinking of just doing select on some applet which is present on brand new java card by default.
    1. Does anyone know if any default applet is present on java card?
    2. If yes, AID of that?
    3. Is there any APDU by which I can find out which java card spec that card supports?
    Btw, I am using Java Card 2.2.2 and the card i have should also have same support.
    Edited by: unic.man on Jul 12, 2008 2:11 AM

    >
    1. I know that any smart-card has a universally unique id which can be retrieved pro grammatically. Can you please tell me the APDU/API to retrieve it on Host app side? If not, card side at least?
    I don't know much about unique IDs but basically you've got the ATR which is given to you every time the card is powered on. The ATR identifies a particular family of cards. If you want to identify each card you need to have a look at the GET DATA command (in Global Platform) and especially the CPLC (Card Production Life Cycle). Apparently you can get a unique ID by combining the IC batch identifier and the IC serial number.
    2. I'm also struggling with deploying the app. It is not detecting the default installer applet via apdutool. I found some articles and netbeans plug-in talking about keys to download applet on card. Do you know standard keys/derivated keys to start secured channel?I don't think you can use the JCDK to install an applet on a real card. If you have a JCOP card I advise you to get the JCOP tools. And yes you will need the keys to establish a secure channel but I don't know what the default keys are on a JCOP card.

  • Java Card and PDA...

    Is it possible to develop a Java Card that can talk over a wireless
    connection, i.e., PDA or Cell phone? More to the point, is there a reader
    out there than can detect and read the Java card if it's within a few feet
    of the card?
    Thanks

    Certainly can do that through iso7816 apdu command
    wirelessly thru the combi smart card. Though I've
    never heard of such a reader. Currently 1 or 2 feets
    only as I know.
    Is it possible to develop a Java Card that can talk
    over a wireless
    connection, i.e., PDA or Cell phone? More to the
    point, is there a reader
    out there than can detect and read the Java card if
    it's within a few feet
    of the card?
    Thanks

  • Java card and Magnetic Strip card

    Dear sir
    There is a difference between java card programming and magnetic strip card programming ?
    If i want to make a loyalty card which one i should prefer and why ?
    I read about magnetic strip cards theoretically and their disadvantages as well but programmatically which one is better ?

    Muhammad Umer wrote:
    Sir i actually want to know that if that which one is easy in programming perspective. And as i am learning java card programming so can i program a magnetic strip card with the same programming skills ?Then you obviously don't know or don't understand what JDL put in their original response. You don not program a magstripe card. You write code on the host side that communicates with a magstripe encoder to encode some static data on the card, such as the loyalty ID of the card holder.
    The host application may have some similarities but that is it. As has been previously stated, a magstripe card does not have a processor so there is no "programming" a magstripe card as such.
    You need to start reading the responses you get a little more carefully before simply disregarding them and asking the same question again.
    Cheers,
    Shane

  • Choosing java card and jcdk

    hi all,
    we are planning to use java card for our project.can you suggest a java card development kit and java card which are appropriate for beginners?also
    what are the required tools for developing applet on the card and host side applet(that resides on pc) that communicates with the card?

    I bought a few of them in past but didn't work together. Not sure it is reader or card's problem. Do you think those two work together?
    http://www.usasmartcard.com/component/page,shop.product_details/flypage,shop.flypage/product_id,138/category_id,10/manufacturer_id,0/option,com_virtuemart/Itemid,26/
    and
    http://www.usasmartcard.com/shop/java-card_20/10404_137.html
    Thanks

Maybe you are looking for

  • DW CS5.5 Testing server setup - Help!!

    Hi everyone, Sorry if this is in the incorrect place for this error but I an having difficulties running a test server for php testing. I am running MacBook Pro, Lion and have Xampp installed. DW CS5.5 Databases access via phpmyadmin works fine. Ok s

  • Problem Activating Source system RSAR 374, RSAR 375

    Hi all, Hoping you can help me with this issue. I have two systems,one R/3 4.7 system and another BW 3.0B system.Both are recently installed. created user in client 800 on R/3. created user in client 100 on BW. i established RFC destination between b

  • Reg Maintanence view

    Hi , We created a maintanence view and when we try to see the data in that it is saying "NO DATABASE EXISTS FOR VIEW" mY QUESTION IS is it mandatory to have a database view for a maintanence view to see the data thanks

  • Need help with not working timer Hp Display Assistant

    Hello i got monitor LA 2306v and when i want use "timer" option in Hp Display Assistant it doesn't work "sheduler" options fork perfect but "timer" one at all :/ Using Windows Vista home premium and got newest version of Hp Display Assistant. ill be

  • Syncing new computer

    Dear sirs I have been using the vista at my old computer and tried to install the later updated itunes without success and we have been prompted with a visual error message, just liked a lot of people said in the other forum and there is definitely a