Page 1 of 1

How to solve the problem with PSS scheme

Posted: Sat Mar 19, 2016 6:07 am
by kurihan
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

Re: How to solve the problem with PSS scheme

Posted: Mon Mar 21, 2016 1:52 am
by mabel
The card hardware may not support the one you want. Ask card vendor for details.

Re: How to solve the problem with PSS scheme

Posted: Mon Mar 21, 2016 2:16 am
by Tarantino
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.

Re: How to solve the problem with PSS scheme

Posted: Mon Mar 21, 2016 3:39 am
by NikerCR
You can use AlgTest to check if your card support the signature type .