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 141 matches

by tay00000
Mon Aug 07, 2017 9:44 pm
Forum: Applets Development Guide
Topic: Random number generator
Replies: 2
Views: 1837

Re: Random number generator

Your attempt to call ALG_TRNG is technically correct in the sense that is JC 3.0.5 specification API. The thing is if your card does not support JC 3.0.5, you are better off using ALG_SECURE_RANDOM and ALG_PSEUDO_RANDOM which is in the JC 2.2.X version of the API. Also note that ALG_SECURE_RANDOM an...
by tay00000
Tue Aug 01, 2017 8:59 pm
Forum: Questions & Answers
Topic: A client application
Replies: 3
Views: 1458

Re: A client application

A short list of host machine (PC computer/server) of possibilities to choose from: ⋅ com.sun.javacard.apduio (Java with Sun package which maybe subjected to depreciation) ⋅ javax.smartcardio (Java - the defacto API) ⋅ OCF (Java) ⋅ jnasmartcardio (Java - altern...
by tay00000
Tue Jul 18, 2017 7:54 am
Forum: Questions & Answers
Topic: CLA byte of the select APDU command
Replies: 2
Views: 1142

Re: CLA byte of the select APDU command

Which card are you using when you do CLA = (byte) 0xBC ?

I have used CLA = (byte) 0xBC and CLA = (byte) 0xB0 and have never hit any problems on NXP JCOP, Feitian cards or any other cards for now.
by tay00000
Fri Jul 14, 2017 9:13 pm
Forum: Card Products
Topic: Enhancing security and authenticity on JavaCardOS offered products
Replies: 0
Views: 1680

Enhancing security and authenticity on JavaCardOS offered products

I would like to recommend a value-add for all JavaCard manufacturers to consider implementation on all it's cards to enhance security and authenticity of applets deployed on the cards. Attesting to whether a symmetric or asymmetric key is generated on a particular card is difficult as there is no me...
by tay00000
Mon Jul 10, 2017 10:41 am
Forum: Questions & Answers
Topic: Directory Tree of Java Card Filesystem
Replies: 4
Views: 1578

Re: Directory Tree of Java Card Filesystem

Here are some quotes from the JavaCard Applet Developer Guide written by Sun: Support for ISO 7816-4 files is provided by the javacardx.framework package. This is an extension package to the core javacard.* classes which may not be implemented on all Java Card platforms. In essence, you have to impl...
by tay00000
Tue Jul 04, 2017 6:52 am
Forum: Algorithm School
Topic: DES Encryption
Replies: 1
Views: 1108

Re: DES Encryption

Please catch and throw a proper exception. 0x6066 is your own exception code and not the standard defined ISO7816 exception codes.

Please modify your catching of exception by throwing a proper ISO7816 standardized exception otherwise it is very hard to debug.
by tay00000
Sun Jul 02, 2017 9:50 am
Forum: Shopping FAQ
Topic: Java card supporting RSA4096
Replies: 4
Views: 2081

Re: Java card supporting RSA4096

You have very very limited option if you want RSA-4096 bit operations. Here is the only one (but very hard to obtain) hardware that supports JavaCard and 4096-bit RSA. I wish you good luck and all the best attempting to obtain these hardware as thee company is known to be very picky on their custome...
by tay00000
Sun Jul 02, 2017 9:17 am
Forum: Questions & Answers
Topic: javax.crypto.BadPaddingException
Replies: 4
Views: 1713

Re: javax.crypto.BadPaddingException

I noticed some possible programming flaws: // In the constructor: ... RSACipher = Cipher.getInstance(Cipher.ALG_RSA_PKCS1,false); ... //In the process method: ... buffer = apdu.getBuffer(); byte [] buf = null; // <----- buf variable is null, what is it used for ?? // Get the encoded message short nu...
by tay00000
Thu Jun 15, 2017 8:25 pm
Forum: Questions & Answers
Topic: Error 0x643A when installing applet on ACOSJ card
Replies: 7
Views: 1995

Re: Error 0x643A when installing applet on ACOSJ card

Before you continue to attempt to install anymore applet, list the contents of the card first to ensure there is really nothing in the card. After you have listed and ensured that no contents are residing in the card, then you start to load the test applet you have recently created. In order to faci...
by tay00000
Wed Jun 14, 2017 5:51 am
Forum: Questions & Answers
Topic: signPreComputedHash on JC30M48CR
Replies: 4
Views: 1708

Re: signPreComputedHash on JC30M48CR

Your post is simply too brief to allow a more detailed understanding of your problem. Please post your source code that is causing the problem so that we could help. Are there any Status Words that are not 0x9000 that are returned during the operation ?
JavaCard OS : Disclaimer