From: <ni...@Te...> - 2013-05-07 16:39:45
|
Hi, I have been asked to create a java card applet which will handle some encryption and decryption. The java card is the Gemalto TOP DL v2 card, which should support 2048 bits RSA. The compilation and the cap converting is ok. keyPair = new KeyPair(KeyPair.ALG_RSA, KeyBuilder.LENGTH_RSA_1024); // Ok But 1984 and 2048 or any other size greater than 1024 fails. This is the load and install script: mode_201 gemXpressoPro enable_timer enable_trace establish_context card_connect -readerNumber 2 select -AID A000000018434D00 open_sc -security 1 -keyind 0 -keyver 0 -key 47454d5850524553534f53414d504c45 -keyDerivation visa2 delete -AID d1d2d3d4d5d6d7d8d90102 delete -AID d1d2d3d4d5d6d7d8d901 install -file abc.cap -sdAID A000000018434D00 -nvCodeLimit 4096 -instParam 31323334 card_disconnect release_context 512 or 1024 works fine, but it fails with: install_for_install_and_make_selectable() returns 0x8010002F (A communications error with the smart card has been detected. Retry the operation. On any higher bit size. I have also tried to load it first and the use the "install_for_install" command for the installation. It fails with the same error. The gpshell version is from 1.4.4. Any help or suggestions would be greatly appreciated. Regards, Hans Erik |