Search found 25 matches
- Thu Sep 21, 2017 3:57 am
- Forum: Questions & Answers
- Topic: 6A80 exception during applet installation
- Replies: 1
- Views: 6290
Re: 6A80 exception during applet installation
I tried to download your applet into my card and it succeed. What surprised me is that I have five load trace, but your log shows only two. > 80 E6 02 00 16 09 A0 00 00 00 62 03 01 0C 06 08 A0 00 00 00 03 00 00 00 00 00 00 00 < 00 90 00 ... > 80 E8 00 00 FA C4 82 01 2A 01 00 2E DE CA FF ED 02 02 04 ...
- Thu Aug 24, 2017 10:13 pm
- Forum: Other Tools
- Topic: GlobalPlatform.NET - A fluent .NET API to manage GlobalPlatform smartcards.
- Replies: 3
- Views: 30530
Re: GlobalPlatform.NET - A fluent .NET API to manage GlobalPlatform smartcards.
Excellent work. Thanks for sharing here.
- Wed Aug 02, 2017 4:44 am
- Forum: Questions & Answers
- Topic: Memory access
- Replies: 1
- Views: 6500
- Mon Jun 12, 2017 4:01 am
- Forum: Questions & Answers
- Topic: How to know the first bit of a data byte
- Replies: 2
- Views: 6395
Re: How to know the first bit of a data byte
You may try to use AND operation to know the bit value.
For example,
Make your data do the AND operation with 0x80.
So,
- if it is 1 in the first bit, the operation result will be 0x80.
- and if it is 0 in the first bit,the operation result will be 0.
For example,
Make your data do the AND operation with 0x80.
So,
- if it is 1 in the first bit, the operation result will be 0x80.
- and if it is 0 in the first bit,the operation result will be 0.
- Wed May 10, 2017 10:31 pm
- Forum: Questions & Answers
- Topic: Get ILLEGAL_VALUE error when decrypting a message
- Replies: 2
- Views: 6507
Re: Get ILLEGAL_VALUE error when decrypting a message
When you are Verifying or Encrypting, RSA public keys are used. When you are Signing or Decrypting, RSA private keys are used.
Please make sure your keys match your usage.
Please make sure your keys match your usage.
- Wed May 10, 2017 10:30 pm
- Forum: Questions & Answers
- Topic: How does java card treat the cap file when sending APDU command
- Replies: 1
- Views: 5618
Re: How does java card treat the cap file when sending APDU command
Just think of the cap file as a JAR file and it contains the byte code for your applets. When the CAP file is loaded and installed, the JCVM parses certain tokens out that enable it to execute.
- Fri Apr 28, 2017 4:03 am
- Forum: Questions & Answers
- Topic: pre-personalization on a J2A040 card
- Replies: 4
- Views: 11807
Re: pre-personalization on a J2A040 card
6A 81: Function not supported
Do you know the card transport key? Just use this key as the AID in the SELECT command.
Do you know the card transport key? Just use this key as the AID in the SELECT command.
- Thu Mar 09, 2017 5:30 am
- Forum: Questions & Answers
- Topic: Get 0X6F00 with KeyPair(KeyPair.ALG_EC_FP,length)
- Replies: 2
- Views: 6519
Re: Get 0X6F00 with KeyPair(KeyPair.ALG_EC_FP,length)
You can use try..catch statement to get reason codes.
Code: Select all
try{
....genKeyPair()
}
catch( CryptoException e ) {
CryptoException.throwIt( e.getReason )
}
- Thu Feb 02, 2017 8:23 pm
- Forum: Algorithm School
- Topic: How to generate DES key without setting it in advance
- Replies: 3
- Views: 8916
Re: How to generate DES key without setting it in advance
Here is a method to generate a random DES key. RandomData rand = RandomData.getInstance(RandomData.ALG_SECURE_RANDOM); short lenBytes = (short) (KeyBuilder.LENGTH_DES3_3KEY/8); byte[] buffer = JCSystem.makeTransientByteArray(lenBytes, JCSystem.CLEAR_ON_DESELECT); DESKey key = (DESKey) KeyBuilder.bui...
- Mon Nov 07, 2016 4:01 am
- Forum: Questions & Answers
- Topic: Response value 0006 in jCardSim
- Replies: 4
- Views: 9683
Re: Response value 0006 in jCardSim
Perhaps. You only need to regard response 0006 as response 9000.