Search found 12 matches
- Tue Oct 10, 2017 1:16 am
- Forum: Questions & Answers
- Topic: How to know the APDU length that has been sent to the application?
- Replies: 2
- Views: 11706
Re: How to know the APDU length that has been sent to the application?
Use the code below to know the length of data field. process(Apdu apdu) { // Lc tells us the incoming apdu command length short bytesLeft = (short) (buffer[ISO7816.OFFSET_LC] & 0x00FF); // you may also use APDU class method short readCount = apdu.setIncomingAndReceive(); }
- Thu Aug 17, 2017 6:04 am
- Forum: Questions & Answers
- Topic: Error 6F00 when generating and verifying a signature
- Replies: 2
- Views: 7831
Re: Error 6F00 when generating and verifying a signature
I changed the sig_buffer to 200, and the sign function is working now ,but the verify function still throws error 0x6F00.
- Wed Aug 16, 2017 11:11 pm
- Forum: Questions & Answers
- Topic: Error 6F00 when generating and verifying a signature
- Replies: 2
- Views: 7831
Error 6F00 when generating and verifying a signature
I am going to generate and verify a signature for some dummy data on a Java Card. It's strange that I always got error code 6F00. I also tried to debug the applet to confirm where the problem is, but failed. Any clue? private void signIt(APDU apdu) { byte[] buffer = apdu.getBuffer(); RSASign = Signa...
- Thu Dec 22, 2016 5:11 am
- Forum: Questions & Answers
- Topic: Get Card Manager ID
- Replies: 4
- Views: 9683
Re: Get Card Manager ID
Using GET STATUS command can also get Card Manager AID.
- Fri Oct 28, 2016 5:08 am
- Forum: Questions & Answers
- Topic: Throw CryptoException when signing
- Replies: 12
- Views: 16748
Re: Throw CryptoException when signing
Don't use RSA512 to do the computations. Use RSA1024 or RSA2048 instead. The computation speed of RSA1024 and RSA2048 is also very fast.
- Fri Oct 28, 2016 5:03 am
- Forum: Algorithm School
- Topic: CAN'T calculate C-MAC
- Replies: 2
- Views: 7582
Re: CAN'T calculate C-MAC
It's possibly because the ICV encryption does not match what your card expects.
- Wed Oct 12, 2016 3:09 am
- Forum: Algorithm School
- Topic: CRC32 on java card
- Replies: 2
- Views: 7796
Re: CRC32 on java card
Some java card has built-in support for CRC32, but some java card doesn't support CRC32 and you have to implement it by yourself.
- Wed Oct 12, 2016 2:33 am
- Forum: Questions & Answers
- Topic: Set JCOP to SCP01
- Replies: 2
- Views: 6151
Re: Set JCOP to SCP01
For JCOP card, you can ask your card agency from whom you buy the card for the method.
I bought some JCOP J3D081 cards from this eshop about six months ago. And I also asked JavaCardOS for the method to switch the SCP and then he sent me a script to do it.
I bought some JCOP J3D081 cards from this eshop about six months ago. And I also asked JavaCardOS for the method to switch the SCP and then he sent me a script to do it.
- Tue Jun 14, 2016 7:49 am
- Forum: Questions & Answers
- Topic: Performance measures about an applet
- Replies: 1
- Views: 5043
Re: Performance measures about an applet
You can measure the time from the host application. Let's say that you can measure the time when the command is sent until a response is received.
- Mon Mar 14, 2016 8:50 am
- Forum: Shopping FAQ
- Topic: J3D081 cards and A40CR cards to Slovakia
- Replies: 1
- Views: 6633
J3D081 cards and A40CR cards to Slovakia
Hi! I need several J3D081 cards and A40CR cards. If I place the order today, when will you make the delivery? How long does it takes to arrive Slovakia?