JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html
https://ftsafe.en.alibaba.com/index.html
getS(byte[] buffer, short offset)
getS(byte[] buffer, short offset)
I am studying ECC on javacard. I cannot understand the related API method:
- getS(byte[] buffer, short offset) : this method returns the value of the secret key in plaintext form.
IMO, the private key is supposed to be secret, and no one can get it. Why does this return the key?
- getS(byte[] buffer, short offset) : this method returns the value of the secret key in plaintext form.
IMO, the private key is supposed to be secret, and no one can get it. Why does this return the key?
You do not have the required permissions to view the files attached to this post. Please login first.
Re: getS(byte[] buffer, short offset)
Girr16 wrote:- getS(byte[] buffer, short offset) : this method returns the value of the secret key in plaintext form.
IMO, the private key is supposed to be secret, and no one can get it. Why does this return the key?
The S parameter is indeed the private key of the ECC. The function ECPrivateKey.getS(...) is almost never used since objects KeyAgreement and Signature have a Private key parameter. You might sometimes use the getS function to verify the value of your private key in debug mode.
Re: getS(byte[] buffer, short offset)
Thank you for your answer.
But what makes me s little surprised is that we can indeed get the private key via this method.
But what makes me s little surprised is that we can indeed get the private key via this method.
- lostsiwonlw
- Posts: 55
- Joined: Fri Jul 31, 2015 9:09 pm
- Points :358
- Contact:
Re: getS(byte[] buffer, short offset)
Girr16 wrote:But what makes me s little surprised is that we can indeed get the private key via this method.
The card won't stop you from getting the private key in any way. It provides you more flexibility but you also have more responsibility.
Searching for meaning...
Who is online
Users browsing this forum: No registered users and 55 guests