Search found 86 matches
- Fri Sep 14, 2018 6:15 am
- Forum: Questions & Answers
- Topic: I have a question about generateSecret
- Replies: 3
- Views: 6787
Re: I have a question about generateSecret
Thanks for your answer. I think you are right. Ther error result may belong "the publicData data is inconsistent with the PrivateKey specified during initialization" .
- Fri Sep 14, 2018 6:10 am
- Forum: Questions & Answers
- Topic: I have a question about API getAvailableMemory
- Replies: 1
- Views: 4984
I have a question about API getAvailableMemory
Hello, I have a question about API getAvailableMemory in JC304. The API has three parameters: a short array, offset and memoryType. The short array is used to store 32 bits number. My question is: the 32 bits number is an unsigned number? And how to calculate the total memory? total memory = array[0...
- Wed Sep 12, 2018 6:29 am
- Forum: Questions & Answers
- Topic: I have a question about generateSecret
- Replies: 3
- Views: 6787
I have a question about generateSecret
Hello, I have a question about KeyAgreement.generateSecret. In API specification, It descript the Throws of KeyAgreement.generateSecret as: • CryptoException.ILLEGAL_VALUE if the publicData data format is incorrect, or if the publicData data is inconsistent with the PrivateKey specified during initi...
- Thu Aug 16, 2018 9:45 pm
- Forum: Questions & Answers
- Topic: Rsa algorithom with private key
- Replies: 6
- Views: 10762
Re: Rsa algorithom with private key
@naresh
What's error ? You should show me the error code.
What's error ? You should show me the error code.
- Thu Jul 19, 2018 2:31 am
- Forum: Questions & Answers
- Topic: Retain the specific data while update the applet
- Replies: 3
- Views: 6484
Re: Retain the specific data while update the applet
If you can get the address and the size of these specific data , this question maybe solved.
- Sun Jul 15, 2018 11:55 pm
- Forum: Questions & Answers
- Topic: Get ECC Public key from Private key
- Replies: 7
- Views: 12800
Re: Get ECC Public key from Private key
Maybe you can calculate public key when you set private key. In general, set private key must be in secure environment.
- Fri Jul 13, 2018 5:42 am
- Forum: Questions & Answers
- Topic: Why the byte length of KeyAgreement.generateSecret() is 20
- Replies: 3
- Views: 6253
Re: Why the byte length of KeyAgreement.generateSecret() is 20
The sample applet maybe use ALG_EC_SVDP_DH_PLAIN.
- Fri Jul 13, 2018 5:40 am
- Forum: Questions & Answers
- Topic: How to manage expand flash on JavaCard
- Replies: 1
- Views: 4500
How to manage expand flash on JavaCard
Hi, boys and girls
Now, I have a project that needs large nvm. So I have to expand a extern flash chip. But how I could manage the flash? I don't know whether the applet should access the flash by indicated API? Anyone can give me some suggests?
Now, I have a project that needs large nvm. So I have to expand a extern flash chip. But how I could manage the flash? I don't know whether the applet should access the flash by indicated API? Anyone can give me some suggests?
- Wed Jul 11, 2018 11:07 pm
- Forum: Questions & Answers
- Topic: Get ECC Public key from Private key
- Replies: 7
- Views: 12800
Re: Get ECC Public key from Private key
Thank you for the answers. I know the "public key = private key * base point" equation but I don't know whether I should do this multiplication or there is built-in methods for this? It's important because my implementation of EC operations might be vulnerable to side-channel attacks. (m)...
- Fri Jul 06, 2018 1:34 am
- Forum: Questions & Answers
- Topic: Rsa algorithom with private key
- Replies: 6
- Views: 10762
Re: Rsa algorithom with private key
so easy. package com.ftsafe.javacard.test; import javacard.framework.*; import javacard.security.*; import javacardx.crypto.*; public class testKey extends Applet { final short MAX_RSA = (short)256; final byte INS_CREATE_KEY = (byte)0x00; final byte INS_SET_KEY_D = (byte)0x01; final byte INS_SET_KEY...