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

by Tarantino
Mon Apr 23, 2018 4:42 am
Forum: Questions & Answers
Topic: Static fields in Applet + installing applet as default = phantomous bugs + fatally infected card?
Replies: 4
Views: 1206

Re: Static fields in Applet + installing applet as default = phantomous bugs + fatally infected card?

What development tools do you use? Can you provide complete code (without important information)?
The code fragments are not easy to read.
by Tarantino
Wed Sep 27, 2017 2:06 am
Forum: Questions & Answers
Topic: Sinus and Cosinus calculation in javacard?
Replies: 5
Views: 1257

Re: Sinus and Cosinus calculation in javacard?

Just try to use Look-up table method. Define an array with size 360 bytes, direct look up the table to calculate sinus and cosinus. It's indeed a good method. But there is still a problem. Look-up table method is available for integer angle. If you need to handle the angle with decimals, this metho...
by Tarantino
Tue Sep 26, 2017 1:40 am
Forum: Questions & Answers
Topic: APDU generation
Replies: 3
Views: 889

Re: APDU generation

Please refer to GP 2.1.1, chapter 8: Secure Communication
by Tarantino
Thu Aug 24, 2017 4:46 am
Forum: Questions & Answers
Topic: How to calculate commad apdu mac?
Replies: 1
Views: 915

Re: How to calculate commad apdu mac?

The algorithm for calculating next CMAC value is single DES in ECB mode.
by Tarantino
Tue Aug 01, 2017 6:03 am
Forum: Questions & Answers
Topic: A client application
Replies: 3
Views: 1212

Re: A client application

OpenCard Framework ( http://www.openscdp.org/ocf/ ) is a nice alternative.

It has the concept of card service, that enables to write card services that wraps your apdus into conventional method calls.
by Tarantino
Thu Jul 20, 2017 4:17 am
Forum: Questions & Answers
Topic: APDU response SW1SW2 question
Replies: 1
Views: 755

Re: APDU response SW1SW2 question

0x9000 is used for success. If you can find an ISO7816 SW that matches the error condition that you are trying to indicate, I think it is a good idea to use that.
by Tarantino
Wed Jul 12, 2017 4:35 am
Forum: Questions & Answers
Topic: APDU Trace
Replies: 1
Views: 658

Re: APDU Trace

You can try to use the PC/SC layer.
- If your computer uses Windows OS, you can try this.
- If you are on Linux, you could try to start the PCSC daemon with APDU logging turned on.
by Tarantino
Thu Jul 06, 2017 4:32 am
Forum: Questions & Answers
Topic: JCKit for Linux
Replies: 2
Views: 1145

Re: JCKit for Linux

That would be very helpful if the JCKit version for Linux comes out. :D
by Tarantino
Thu Jul 06, 2017 2:12 am
Forum: Questions & Answers
Topic: How to add test scripts in TCK
Replies: 2
Views: 913

Re: How to add test scripts in TCK

In my opinion, we can add/change test scripts in TCK according to our needs, although I have never did it.
by Tarantino
Fri Jun 30, 2017 5:31 am
Forum: Questions & Answers
Topic: javax.crypto.BadPaddingException
Replies: 4
Views: 1476

Re: javax.crypto.BadPaddingException

You just need to add a check for a negative modulus coming from the card. In RSA encryption, you use large integers for the calculation. Even the message is converted to a large integer. For the equation to work, the message has to be smaller than the modulus. If the first bit of your modulus from t...
JavaCard OS : Disclaimer