Search found 59 matches
- Mon Jun 19, 2017 2:01 am
- Forum: Questions & Answers
- Topic: How to use APDU instance in install method
- Replies: 3
- Views: 8220
Re: How to use APDU instance in install method
Because the byte[] in the install method is the global buffer. You will need to defer this call until the process method has been invoked.
- Thu May 25, 2017 6:00 am
- Forum: Questions & Answers
- Topic: secure channel security question
- Replies: 1
- Views: 5014
Re: secure channel security question
Acctually, it's not a good idea to use the global platform secure channel.
If the keys are compromised, an attacker can then manage the card.
So donot use the GP secure channel for application security.
If the keys are compromised, an attacker can then manage the card.
So donot use the GP secure channel for application security.
- Thu May 25, 2017 5:57 am
- Forum: Questions & Answers
- Topic: How to decode the response data
- Replies: 2
- Views: 6419
Re: How to decode the response data
It seems that it is wrong TLV-coded data.
- Tue May 09, 2017 4:46 am
- Forum: Questions & Answers
- Topic: How to get big number
- Replies: 3
- Views: 7073
Re: How to get big number
When you have a byte that is greater than 0x7F and meanwhile you want to make it an unsigned value, you can use the following to prevent the sign extension:
Code: Select all
short a = (short) (b & 0xFF);
- Fri Apr 28, 2017 4:23 am
- Forum: Algorithm School
- Topic: cipher/ decipher with 3DES alg
- Replies: 4
- Views: 10794
Re: cipher/ decipher with 3DES alg
Try to use AES instead.
- Thu Apr 27, 2017 4:17 am
- Forum: Algorithm School
- Topic: cipher/ decipher with 3DES alg
- Replies: 4
- Views: 10794
Re: cipher/ decipher with 3DES alg
It seems that your problem has something to do with DES weak key. Do you use weak key?
- Thu Apr 27, 2017 4:12 am
- Forum: Algorithm School
- Topic: Difference between KeyBuilder and KeyPair
- Replies: 3
- Views: 10398
Re: Difference between KeyBuilder and KeyPair
Yes, if you use new statement, the key objects will be stored in persistent memory.
You just need to write once and then you can read many times.
You just need to write once and then you can read many times.
- Wed Apr 26, 2017 6:00 am
- Forum: Algorithm School
- Topic: Difference between KeyBuilder and KeyPair
- Replies: 3
- Views: 10398
Re: Difference between KeyBuilder and KeyPair
buildKey is not used to generate a key. And what type of memory is used by the genKeyPair() method, Transient or Persistent ? From my understanding, it is common for a smart cards to have RAM dedicated to cryptographic operations. In fact, as much of the operation as possible is done in transient RA...
- Tue Mar 07, 2017 3:25 am
- Forum: Questions & Answers
- Topic: Does JCIDE support HMAC?
- Replies: 3
- Views: 8490
Re: Does JCIDE support HMAC?
JCIDE doesn't support HMAC.
- Tue Feb 21, 2017 5:52 am
- Forum: Questions & Answers
- Topic: Exclude debug.cap in JCIDE
- Replies: 1
- Views: 6204
Re: Exclude debug.cap in JCIDE
There is an option under "Build" - "Property". On the property sheet, just disable "- debug" option. Then your final cap file will not include debug.cap.