JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html

How to solve the problem with PSS scheme

JavaCard Applet Development Related Questions and Answers.
kurihan
Posts: 17
Joined: Mon Dec 07, 2015 11:17 pm
Points :122
Contact:

How to solve the problem with PSS scheme

Post by kurihan » Sat Mar 19, 2016 6:07 am

I am trying to sign a message with the following Siganture. I know that my card support this signature, but I got the exception NO_SUCH_ALGORITHM

Code: Select all

Signature sig = Signature.getInstance(Signature.ALG_RSA_SHA_256_PKCS1_PSS, false);


And this one can work fine.

Code: Select all

Signature sig = Signature.getInstance(Signature.ALG_RSA_SHA_256_PKCS1, false);


So I guess that there is some problem with the PSS scheme. How can I solve this problem to make it work?

Update: my java card version 3.0.1

User avatar
mabel
Posts: 237
Joined: Mon May 18, 2015 3:09 am
Points :1705
Contact:

Re: How to solve the problem with PSS scheme

Post by mabel » Mon Mar 21, 2016 1:52 am

The card hardware may not support the one you want. Ask card vendor for details.

Tarantino
Posts: 101
Joined: Wed Aug 19, 2015 1:56 am
Points :478
Contact:

Re: How to solve the problem with PSS scheme

Post by Tarantino » Mon Mar 21, 2016 2:16 am

Hi, there is no guarantee that the card vendor should implement all given cryptographic mechanism supported by JavaCard. That is, JavaCard 3.0.1 supports several RSA-PSS signature types, but the card might not support all the types.
The greatest glory in living lies not in never falling, but in rising every time we fall.--Nelson Mandela

User avatar
NikerCR
Posts: 10
Joined: Fri Jun 19, 2015 6:49 am
Points :15
Contact:

Re: How to solve the problem with PSS scheme

Post by NikerCR » Mon Mar 21, 2016 3:39 am

You can use AlgTest to check if your card support the signature type .
One way.

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 34 guests

JavaCard OS : Disclaimer