What development tools do you use? Can you provide complete code (without important information)?
The code fragments are not easy to read.
Search found 101 matches
- 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: 10413
- Wed Sep 27, 2017 2:06 am
- Forum: Questions & Answers
- Topic: Sinus and Cosinus calculation in javacard?
- Replies: 5
- Views: 10518
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...
- Tue Sep 26, 2017 1:40 am
- Forum: Questions & Answers
- Topic: APDU generation
- Replies: 3
- Views: 8441
Re: APDU generation
Please refer to GP 2.1.1, chapter 8: Secure Communication
- Thu Aug 24, 2017 4:46 am
- Forum: Questions & Answers
- Topic: How to calculate commad apdu mac?
- Replies: 1
- Views: 6692
Re: How to calculate commad apdu mac?
The algorithm for calculating next CMAC value is single DES in ECB mode.
- Tue Aug 01, 2017 6:03 am
- Forum: Questions & Answers
- Topic: A client application
- Replies: 3
- Views: 9198
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.
It has the concept of card service, that enables to write card services that wraps your apdus into conventional method calls.
- Thu Jul 20, 2017 4:17 am
- Forum: Questions & Answers
- Topic: APDU response SW1SW2 question
- Replies: 1
- Views: 6025
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.
- Wed Jul 12, 2017 4:35 am
- Forum: Questions & Answers
- Topic: APDU Trace
- Replies: 1
- Views: 6398
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.
- 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.
- Thu Jul 06, 2017 4:32 am
- Forum: Questions & Answers
- Topic: JCKit for Linux
- Replies: 2
- Views: 8799
Re: JCKit for Linux
That would be very helpful if the JCKit version for Linux comes out.
- Thu Jul 06, 2017 2:12 am
- Forum: Questions & Answers
- Topic: How to add test scripts in TCK
- Replies: 2
- Views: 7726
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.
- Fri Jun 30, 2017 5:31 am
- Forum: Questions & Answers
- Topic: javax.crypto.BadPaddingException
- Replies: 4
- Views: 11173
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...