The exclusive promotional activities on JCOP J3H145 card and Feitian R301 Smartcard Reader are in full swing. Please check this page for details.

Search found 28 matches

by btwtiger
Fri Jun 16, 2017 6:15 am
Forum: Questions & Answers
Topic: Implement a simple JavaCard API
Replies: 3
Views: 804

Re: Implement a simple JavaCard API

It is up to your implementation.
by btwtiger
Thu Jun 15, 2017 11:26 pm
Forum: Questions & Answers
Topic: Implement a simple JavaCard API
Replies: 3
Views: 804

Re: Implement a simple JavaCard API

1. Change your applet build process to intercept the generated classes before JAVA CARD bytecode conversion, and make a jar; 2. Dynamically load this jar in a driver program; 3. Using reflection , call the entry point "install()" in the loaded class - this will call the applet constructor ...
by btwtiger
Tue Mar 22, 2016 5:09 am
Forum: Questions & Answers
Topic: How to install ROM masked applet
Replies: 2
Views: 1378

Re: How to install ROM masked applet

If you have the ROM applet -AID, you can directly send Install for Install and make selectable command.
by btwtiger
Tue Mar 22, 2016 4:59 am
Forum: Algorithm School
Topic: My code doesn't work with RSA key
Replies: 2
Views: 1106

Re: My code doesn't work with RSA key

Hey bro.

It seems that you are only catching the exception and not printing the exception out.
by btwtiger
Mon Feb 22, 2016 3:51 am
Forum: Algorithm School
Topic: Failed to generate RSA Key
Replies: 3
Views: 2015

Re: Failed to generate RSA Key

The below code also has the issue that you are trying to copy into a null buffer. The method does not allocate memory for you. You need to allocate a buffer, or use a previously allocated buffer. public byte[] getPub(){ byte[] ret = null; rsa_PublicKey.getModulus(ret, (short)0); rsa_PublicKey.getExp...
by btwtiger
Mon Feb 22, 2016 3:48 am
Forum: Algorithm School
Topic: Failed to generate RSA Key
Replies: 3
Views: 2015

Re: Failed to generate RSA Key

You may need to check the documentation, but from memory the CREF emulator only supports 512 bit keys.
by btwtiger
Tue Jan 26, 2016 10:22 pm
Forum: Questions & Answers
Topic: JavaCard applications on SIM accessing personal Java applications
Replies: 1
Views: 807

Re: JavaCard applications on SIM accessing personal Java applications

At present there is no way to access the Java Card in a J2ME/personal Java device. But I am not sure.
by btwtiger
Tue Jan 26, 2016 10:07 pm
Forum: Algorithm School
Topic: Change the cipher length to 8
Replies: 2
Views: 1170

Re: Change the cipher length to 8

That is because of the padding method of that cipher. That cipher padding mode pads input data according to the ISO 9797 method 2. The data will be padded even if it is already on a block size boundary.
by btwtiger
Tue Jan 12, 2016 10:20 pm
Forum: Questions & Answers
Topic: Do ECC cryptography, ECDSA and elliptic Diffie-Hellman on a JavaCard
Replies: 1
Views: 803

Re: Do ECC cryptography, ECDSA and elliptic Diffie-Hellman on a JavaCard

I have already bought some java cards and I m going to do ECC cryptography, ECDSA and elliptic Diffie-Hellman on a JavaCard. Could you share any code samples with me? I would be greatly grateful for any reply! Hi guy! I have written an applet for testing ECDH. Maybe this will be helpful to you! pri...
by btwtiger
Thu Jan 07, 2016 4:43 am
Forum: Algorithm School
Topic: Something wrong with RSA Encryption Algorithm
Replies: 1
Views: 1010

Re: Something wrong with RSA Encryption Algorithm

Hi guy!

There is something wrong with this code.

Code: Select all

cipherRSA = Cipher.getInstance(Cipher.ALG_RSA_NOPAD, true);


NOPAD might not be implemented .
JavaCard OS : Disclaimer