Search found 53 matches
- Fri Jul 13, 2018 5:29 am
- Forum: Questions & Answers
- Topic: Why the byte length of KeyAgreement.generateSecret() is 20
- Replies: 3
- Views: 6380
Re: Why the byte length of KeyAgreement.generateSecret() is 20
But my sample card which installed other's applet return 32 bytes. I think there maybe something I don't know....
- Fri Jul 13, 2018 5:22 am
- Forum: Questions & Answers
- Topic: How to set EC parameters of Keypair
- Replies: 5
- Views: 9600
Re: How to set EC parameters of Keypair
You can set the parameter via the API :setA; setB; setG; setR; setK;setFieldFP;setFieldF2M. If you don't set the parameter into the card cos. the cos may use the default parameter. Thank for your answer very much. I try this way your mentioned. But the parameters is still not my expected. My applet...
- Fri Jul 13, 2018 5:10 am
- Forum: Questions & Answers
- Topic: Why the byte length of KeyAgreement.generateSecret() is 20
- Replies: 3
- Views: 6380
Why the byte length of KeyAgreement.generateSecret() is 20
Hello,
I write a applet to implement KeyAgreement recently. I create a 256 bits EC key, then call KeyAgreement.generateSecret(). In the end, the length of result is 20 bytes. Why? My EC key length is 256 bits, 32 bytes. Why my result length is 20 bytes?
I write a applet to implement KeyAgreement recently. I create a 256 bits EC key, then call KeyAgreement.generateSecret(). In the end, the length of result is 20 bytes. Why? My EC key length is 256 bits, 32 bytes. Why my result length is 20 bytes?
- Fri Jul 13, 2018 5:03 am
- Forum: Questions & Answers
- Topic: How to set EC parameters of Keypair
- Replies: 5
- Views: 9600
How to set EC parameters of Keypair
hello, everyone.
I have a problem with KeyPair. I want generate a EC keypair with KeyPair.genKeyPair(). And I hope the EC components parameters is my indicated parameters. But I not know how to set those parameters. Who can help me?
I have a problem with KeyPair. I want generate a EC keypair with KeyPair.genKeyPair(). And I hope the EC components parameters is my indicated parameters. But I not know how to set those parameters. Who can help me?
- Wed Jul 04, 2018 6:02 am
- Forum: Questions & Answers
- Topic: What is SCP02?
- Replies: 5
- Views: 10786
Re: What is SCP02?
SCP02 use S-ENC and S-MAC to create secure channel?
- Wed Jul 04, 2018 5:57 am
- Forum: Questions & Answers
- Topic: Get ECC Public key from Private key
- Replies: 7
- Views: 12956
Re: Get ECC Public key from Private key
In JavaCardAPI, the description of genKeyPair() is "For the EC case, if the Field, A, B, G and R parameters of the public key object are pre-initialized, then they will be retained. Otherwise default pre-specified values MAY be used (e.g. WAP predefined curves), since computation of random gene...
- Fri Jun 29, 2018 4:40 am
- Forum: Questions & Answers
- Topic: What is SCP02?
- Replies: 5
- Views: 10786
Re: What is SCP02?
May I add to a question?
What's the most differences between SCP02 and SCP01 ?
What's the most differences between SCP02 and SCP01 ?
- Fri Jun 29, 2018 4:37 am
- Forum: Questions & Answers
- Topic: RSA algorithem
- Replies: 2
- Views: 5404
Re: RSA algorithem
Public RSA key modulus length can from 64 bytes to 512 bytes. Even it can longer than 512 bytes.
- Wed Jun 27, 2018 10:05 pm
- Forum: Questions & Answers
- Topic: Get JavaCard's Stack Size
- Replies: 2
- Views: 5851
- Wed Jun 27, 2018 10:02 pm
- Forum: Questions & Answers
- Topic: javacard communication
- Replies: 2
- Views: 5756
Re: javacard communication
The unique identifier of javacard is ChipID.
And I think the reader ID is the unique identifier of javacard communication.
And I think the reader ID is the unique identifier of javacard communication.