Search found 76 matches
- Mon Dec 21, 2015 1:07 am
- Forum: Algorithm School
- Topic: Is it possible to use ALG_HMAC_SHA1 in JC2.2.1?
- Replies: 4
- Views: 9934
Re: Is it possible to use ALG_HMAC_SHA1 in JC2.2.1?
@horse dream , Thanks for your reply. But how do I exactly know whether my smartcard supports it? If your smartcard supports JC 2.2.1, calling the getInstance() method with the value of ALG_HMAC_SHA1 will typically cause a CryptoException with reason (CryptoException.NO_SUCH_ALGORITHM) indicating t...
- Sun Dec 20, 2015 11:44 pm
- Forum: Communication
- Topic: How can I use MAC session key without card challenge value?
- Replies: 2
- Views: 8004
Re: How can I use MAC session key without card challenge value?
As far as I know, MAC session keys are generated after receiving card challenge value!
- Sun Dec 20, 2015 11:32 pm
- Forum: Algorithm School
- Topic: Is it possible to use ALG_HMAC_SHA1 in JC2.2.1?
- Replies: 4
- Views: 9934
Re: Is it possible to use ALG_HMAC_SHA1 in JC2.2.1?
You could just use the value that you find in the JC2.2.2 version for the constant ALG_HMAC_SHA1 (= (byte)24) and pass it to the Signature.getInstance() method. So using the value is not a problem. However, the smartcard must support this algorithm in order for you to be able to use.
- Mon Dec 14, 2015 10:22 pm
- Forum: Questions & Answers
- Topic: Get "6E 00" APDU response
- Replies: 2
- Views: 10721
Re: Get "6E 00" APDU response
I investigate further. The problem is due to the Get Response command. When sending the get processing option (80A80000028300) the card respond 6114. But, instead of sending the following APDU (00 C0 00 00 14) it sends (80 C0 00 00 14) which is a Class error, then the card respond 6E00. Does anyone...
- Sun Dec 06, 2015 11:39 pm
- Forum: Card Products
- Topic: How to lock my card?
- Replies: 2
- Views: 15698
Re: How to lock my card?
Here are two methods for you to "lock" your card.
1. Change the authentication keys to achieve your goal and be sure to save the new key in secret.
2. Set your own PIN.
1. Change the authentication keys to achieve your goal and be sure to save the new key in secret.
2. Set your own PIN.
- Sun Dec 06, 2015 11:33 pm
- Forum: Questions & Answers
- Topic: Why my applet returned 6A 82 -- File Not Found?
- Replies: 3
- Views: 8236
Re: Why my applet returned 6A 82 -- File Not Found?
How did you upload and install your applet? Which tools did you use?
- Sat Dec 05, 2015 2:20 am
- Forum: FluffyPGPApplet
- Topic: FluffyPGPApplet Instructions & Applet Source Code
- Replies: 2
- Views: 20056
Re: FluffyPGPApplet
This applet is no particularly limited for JavaCard and GP version.
If your Java Card supported the version of JavaCard and GP versions is lower, At the time of building applet, you can select the lower version of the API and convertor.
If your Java Card supported the version of JavaCard and GP versions is lower, At the time of building applet, you can select the lower version of the API and convertor.
- Wed Dec 02, 2015 8:48 am
- Forum: Algorithm School
- Topic: What's SDA and DDA?
- Replies: 1
- Views: 6346
Re: What's SDA and DDA?
FYI, SDA ensures the authenticity of ICC data. After SDA it is sure that the data from the ICC is real and hasn't changed by anyone. But SDA doesn't assure the uniqueness of ICC data. SDA guarantees that data on cards is valid because we trust a high level certification authority which signs the dat...
- Wed Dec 02, 2015 8:43 am
- Forum: Questions & Answers
- Topic: How to send the arguments of install() method to smart card reader
- Replies: 1
- Views: 6340
Re: How to send the arguments of install() method to smart card reader
It seems that you want to write to an uninitialized array(theArray == null). For this, you can initialize with theArray = new byte[length]
And you also made the wrong parameters for Util.arrayCopyNonAtomic.
And you also made the wrong parameters for Util.arrayCopyNonAtomic.
- Wed Dec 02, 2015 8:37 am
- Forum: Questions & Answers
- Topic: Hope somebody help me to understand the difference between SIMLPLE -TLV and BER-TLV
- Replies: 2
- Views: 7667
Re: Hope somebody help me to understand the difference between SIMLPLE -TLV and BER-TLV
Check out ISO/IEC 7816-4 to go through this part, you will find -SIMPLE-TLV is a different method of encoding for tag and length (although the encoding may look similar, e.g. when using a single byte to indicate the length part) --SIMPLE-TLV does not contain information about the class of the field,...