Has any one used RSA on Gemplus Xpresso Javacards? (JC 2.1.1)

Hello,
i ve been trying to generate an RSA keypair on my Xpresso card, but the applet fails to load... what i try is...
package packJCardDemo1;
import javacard.framework.*;
import javacard.security.*;
public class CardRWV extends Applet {
private static KeyPair keypair;
public static void install(byte[] buffer, short offset, byte length) {
memory = new byte[SIZE_MEMORY];
pin = new OwnerPIN(DEFAULT_PIN_MAX, PIN_SIZE);
pin.update(DEFAULT_PIN, (short)(0), PIN_SIZE);
try {
keypair = new KeyPair( KeyPair.ALG_RSA, KeyBuilder.LENGTH_RSA_512 );
} catch (CryptoException ce) {
if (ce.getReason() == CryptoException.UNINITIALIZED_KEY)
ISOException.throwIt(ISO7816.SW_FILE_FULL);
else if (ce.getReason() == CryptoException.INVALID_INIT)
ISOException.throwIt(ISO7816.SW_FILE_NOT_FOUND);
else if (ce.getReason() == CryptoException.ILLEGAL_USE)
ISOException.throwIt(ISO7816.SW_FILE_INVALID);
else if (ce.getReason() == CryptoException.NO_SUCH_ALGORITHM)
ISOException.throwIt(ISO7816.SW_WRONG_ALG);
else
ISOException.throwIt(ISO7816.SW_RECORD_NOT_FOUND);
new CardRWV().register();
The compile runs ok, but when i try to load the applet into the card it fails (the install method generates an exception). If i put the try-catch in comments my applet loads normally...
Also when is use debug i get these messages indicating that RSA is (should be) implemented...
Checking crypto providers...
"DESede/ECB/NoPadding" feature found in provider: "SunJCE"
DES/3DES feature is ok...
"RSA/ECB/NoPadding" feature found in provider: "GemplusCrypto"
RSA feature is ok...
Any help would be appreciated!
Best Regards
John

I found the problem, when i removed the key building from the install method and placed it in a separate block the applet installed correctly, but when i request the building of a pair of keys, a Crypto exception NO_SUCH_ALGORITHM is thrown. I have used RSA, RSA_CRT, DSA (every possible length combination) but i get the same exception. If anyone has implemented RSA on a Gemplus (Gemxplore Xpresso Range) card please give me your lights.
Thanks in advance!
John

Similar Messages

  • Has any one used Safari with TreasuryDirect?

    TreasuryDirect is asking for "A Web Browser That Supports 128-Bit Encryption". I cannot find any information about Safari's encryption capabilities. Has any one used Safari at TreasuryDirect?
    Thanks gameMan

    Hi,
    Safari does support 128-bit encryption, as mentioned on this page:
    http://www.apple.com/macosx/features/safari/
    "Safari also uses strong 128-bit encryption when accessing secure sites such as your bank or an online store, so you can transmit account and payment information with confidence."
    I can't comment on TreasuryDirect however - hopefully someone else can answer that part

  • Has any one used DocumentBurster/PdfBurster?

    Has any one used DocumentBurster/PdfBurster?
    http://www.pdfburst.com/
    I need some help in configuring the Email parameters inside the tool?

    DocumentBurster documentation on [how to distribute reports by email is available here|http://www.pdfburst.com/docs.html].

  • 1way.dll Has any one used the following

    I want to use a Copy right/evaluation program or dll, to give a limited trial period for an application written in Labview 6.1. Has any body used or has any good ideas for controlling such functions. I was going to try 1way.dll software but don't know how labview will cope with calling this dll. I would like to offer the client the ability to obtain a serial number for continued use.

    I can think of a couple of ways to do this. For small volume applications you could hard code the expiration date into the application prior to the build. At startup you could then check for a valid reistration code (this could be coded into an ini file) and then, if not registered, perform the appropriate task depending on whether the period has expired. You may also want to check during operation (say, for instance, every hour) to prevent continued use of the program by leaving it running. You could put a button on the front panel which is active an visible only if the program is not registered to allow for writing the registration code.
    The second way is to include the start data in the ini file and have the evaluation period hard coded. This method is l
    ess secure, although you could invent an encryption style for the date. Otherwise implementation would be similar.
    I'm not familiar with the 1way.dll software so I can't give you any guidance on how well that approach would work.

  • Has any one used it with gear/watch

    just wording if any one has tryed this yet?

    Hi,
    Safari does support 128-bit encryption, as mentioned on this page:
    http://www.apple.com/macosx/features/safari/
    "Safari also uses strong 128-bit encryption when accessing secure sites such as your bank or an online store, so you can transmit account and payment information with confidence."
    I can't comment on TreasuryDirect however - hopefully someone else can answer that part

  • Has any one used the verizon iPad in Italy with a local data plan?

    I am plannign a trip to Italy. I have a VZ ipad 3rd gen.  I would liek to use a local data SIM for Italy.  VZ is $25 for 100MB.  I think TIM is about 9 eoro for 1GB.

    I can think of a couple of ways to do this. For small volume applications you could hard code the expiration date into the application prior to the build. At startup you could then check for a valid reistration code (this could be coded into an ini file) and then, if not registered, perform the appropriate task depending on whether the period has expired. You may also want to check during operation (say, for instance, every hour) to prevent continued use of the program by leaving it running. You could put a button on the front panel which is active an visible only if the program is not registered to allow for writing the registration code.
    The second way is to include the start data in the ini file and have the evaluation period hard coded. This method is l
    ess secure, although you could invent an encryption style for the date. Otherwise implementation would be similar.
    I'm not familiar with the 1way.dll software so I can't give you any guidance on how well that approach would work.

  • Has any one used the program mac keeper

    Found a program called Mac Keeper but I want to hear from people that are not on their web page if it really works.

    It sounds like your Mac does not have the correct processor for Lion. There always has to be a cutoff somewhere.
    Is there anything your Mac is not doing for you?
    If it works for you then use it.
    No need to whining and moan to us about it.
    IMHO you should consider yourself extremely luck to have been able to use MacKeeper without any problems.
    I recommment that MacKeeper be avoided at all cost. It charges you to do thing that you can with the operating system for free.
    Allan

  • Has any one used HZ_CUST_ACCOUNT_SITE_V2PUB.update_cust_acct_site?

    I am using the following procedure to activate the account site but it doesn't work.
    Does anyone has a psuedo code?
    HZ_CUST_ACCOUNT_SITE_V2PUB.update_cust_acct_site

    l_cust_acct_site_rec.cust_acct_site_id := 1298; --l_cust_acct_site_id;
    l_cust_acct_site_rec.status := 'A';
    --and passing the right version number
    APPS.HZ_CUST_ACCOUNT_SITE_V2PUB.update_cust_acct_site
    p_init_msg_list => 'T',
    p_cust_acct_site_rec => l_cust_acct_site_rec,
    p_object_version_number => l_object_version_number,
    x_return_status => l_return_status,
    x_msg_count => l_msg_count,
    x_msg_data => l_msg_data
    );

  • Has any one used JHeadstart with JDev?

    It sounds cool and is supposed to speed up the development process when using JDev.
    Supposed to include std app services such as session and state mgt, page-level access control, login mgt, basic page validations, std error handling and debugging.
    You can see a factsheet under the Oracle Consulting offerings.
    I heard it was going to be bundled into iAS 1.0.2.2 version and won't be a product until v2.0.
    As iAS 1.0.2.2 is now available on OTN for download can anyone confirm whether it is there?
    Also, supposed to cost a fortune, US$25K for a single app or US$110K for site license. Can anyone confirm these prices?
    null

    You can download the framework and documentation at the following location: http://technet.oracle.com/sample_code/tech/java/oc4j/content.html
    The product name has changed to Project Cleveland.
    Currently, there is no cost for the framework. The plan for the framework is to be shipped as part of iAS in version 2.0. There are no plans to make it a separate cost from the iAS license fee.
    null

  • Coresuite  -  has any one used this ? if so what do you think

    has anyone used the Coresuite from
    http://www.coresuite.ch/
    if so what do yu think of it?

    We had a closer look at the "coresuite framework" as we had a similar approach to connect small add-ons to B1 via an interface component which held a single connection to B1.
    But most of their other components seem to run outside B1 client (??) which is why we didn't try it out...
    Have you tried it out? If so what do you think?

  • HAS any one used a 50 ch DMM for resistance measurement?

    What i'm trying to do is simple, i'm trying to monitor 50 channels or should i say 50 points of resistance measurement and then datalogging a change but i have a restriction and that is the sampling rate. i can't use a realy since there is a DEBOUNCE issue so i'm stuck right now on this. i have to pretty much scan a 50 channels in 20uS or less and then logg everything that changes. please help thanks.

    Hi CrukZ,
          I am NOT a "hardware" person, but recently researched this subject and (with a hardware person) built a shorts-test station.  One solution that I/we considered was to use an analog DAQ board.  We'd have put some voltage - say 5V - on a buss, then branched off the buss with 50 individual high-precision resistors - one to each testpoint (one input goes straight to the ?V buss).  The DAQ board does a single-ended voltage measurement at each test-point - the mid-point of a voltage-divider - and use the measured voltage to calculate current and/so resistance.  Two 1.25MHz DAQ boards (triggered together), at 25-channels each, would get the DAQ-rate you're after.
    You'd have to play with the test-voltage and resistor choices depending on the current/voltage specs of your device.  I think the closer the series resistor matches expected DUT resistance, the better it is for the calcs, but then really low resistance means higher current so it's "a balancing act".  The more expected resistance varies, the worse it is for the calcs. 
    In our case, the tested circuits included diodes and current didN'T change linearly with test-voltage.  However, we successfully emulated a hand-held Fluke DMM @1.2V on the 400 ohm scale.  Done-deal! 
    BTW, I won't feel bad if someone describes why this is a terrible idea.
    I am NOT a hardware guy person
    When they give imbeciles handicap-parking, I won't have so far to walk!

  • Has any one used elmo motion control products

    Hi
    I am using a elmo motion control servo node.This has a rs232 interface. I want to know whether it is possible to use this node with lanview.

    We have used elmo drives for brushed servo motors several times in th past without problems. What is the model of the drive you have?

  • Has any one used labVIEW to obtain measuremen​ts from a termocoupl​e type C.

    I am using a Thermocouple type C to read the temperature of a furnace.

    Mayo,
    For a more general purpose answer as to using LabVIEW for monitoring C type Thermocouples, consider posting in the DAQ or LabVIEW Categories. FieldPoint can be used for monitoring C type thermocouples. The FP-TC-120 modules does not directly support C type thermocouples, so instead of configuring an FP-TC-120 for temperature mode, you would configure it for voltage mode, set the appropriate range, read the input channel and the CJC channel, and do the scaling in software. A FieldPoint System would be comprised of a network module (FP-1000, FP-1001, FP-1600, FP-2000 or FP-2010), terminal base(s) (FP-TB-3 recommended for use with thermocouple modules) and an I/O module(s) (FP-TC-120 for thermocouple measurements).
    Regards,
    Aaron

  • Has any one used Extreme Tables?

    If anyone used extreme tables, please reply to this message.
    Thank's

    Thank's.
    I already have created table using JSP and html.
    My company wants to move toward extremeTables for the project I'm involved in and I was asked to investigate it.
    I already have some part working, but, unfortunatelly, I cannot find enough information and tutorials to help me solve some occured issue and move forward.
    Thank's

  • Does any one use Izotope Ozone 4 with Logic ?

    Has any one used Izotope Ozone 4 plugins with logic 8 before I wanted to get it.
    I was looking to buy it wonder if it was worth getting? I nedd some plugins for mixing Thanks

    It's really popular set of Mastering plugins. Widely used. Try the demo out before you buy -
    http://izotope.com/products/audio/ozone/
    JG

Maybe you are looking for

  • Is it possible to travel with MacMail if I don't have a powerbook?

    I have an iMac G5 (OS 10.3.9) and I use Mac Mail (1.3.11) When I travel I access my email via Comcast's Web Mail. At the moment, Comcast only keeps messages back to 12/17/08. I will soon be traveling and while away I will need to refer to many messag

  • Positioning of objects

    i have a JDialog and want to position the components so that they pass exactly . for example i have a JLabel but only part of it seen , should i give the size of any component maually the other problem is that the user should be able to enter data in

  • HT1040 Does anyone know what this error means?

    I keep trying to order a book and it won't let me because it always says there was an error uploading! Thanks! Error(when trying to preview book) "The operation couldn't be completed. (com.apple.chameleon.pdfGenerate error 1." Thank you!

  • Why we cant have access sequence for header condition ?

    hi , i have one query in pricing. Can we assign access sequence for header condition ? if yes how ? if not why ? please explain

  • SAP file system allocation

    Hi Experts, I Like to install SAP ECC6.0 In unix/AIX./Linux  wat are the necessary file system to create &  how much allocate the size. By, s.senthil