Search found 28 matches
- Fri Jun 16, 2017 6:15 am
- Forum: Questions & Answers
- Topic: Implement a simple JavaCard API
- Replies: 3
- Views: 7976
Re: Implement a simple JavaCard API
It is up to your implementation.
- Thu Jun 15, 2017 11:26 pm
- Forum: Questions & Answers
- Topic: Implement a simple JavaCard API
- Replies: 3
- Views: 7976
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 ...
- Tue Mar 22, 2016 5:09 am
- Forum: Questions & Answers
- Topic: How to install ROM masked applet
- Replies: 2
- Views: 7971
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.
- Tue Mar 22, 2016 4:59 am
- Forum: Algorithm School
- Topic: My code doesn't work with RSA key
- Replies: 2
- Views: 8229
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.
It seems that you are only catching the exception and not printing the exception out.
- Mon Feb 22, 2016 3:51 am
- Forum: Algorithm School
- Topic: Failed to generate RSA Key
- Replies: 3
- Views: 10581
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...
- Mon Feb 22, 2016 3:48 am
- Forum: Algorithm School
- Topic: Failed to generate RSA Key
- Replies: 3
- Views: 10581
Re: Failed to generate RSA Key
You may need to check the documentation, but from memory the CREF emulator only supports 512 bit keys.
- Tue Jan 26, 2016 10:22 pm
- Forum: Questions & Answers
- Topic: JavaCard applications on SIM accessing personal Java applications
- Replies: 1
- Views: 5689
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.
- Tue Jan 26, 2016 10:07 pm
- Forum: Algorithm School
- Topic: Change the cipher length to 8
- Replies: 2
- Views: 7673
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.
- 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: 5580
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...
- Thu Jan 07, 2016 4:43 am
- Forum: Algorithm School
- Topic: Something wrong with RSA Encryption Algorithm
- Replies: 1
- Views: 6716
Re: Something wrong with RSA Encryption Algorithm
Hi guy!
There is something wrong with this code.
NOPAD might not be implemented .
There is something wrong with this code.
Code: Select all
cipherRSA = Cipher.getInstance(Cipher.ALG_RSA_NOPAD, true);
NOPAD might not be implemented .