Nousheen Siddiqui
Nousheen Siddiqui

Reputation: 11

Test vector for PKSC1V2.2 RSASSA-PSS signature scheme

I'm working on PKSC1V2.2 RSASSA-PSS Signature Scheme. I got some standard test vector for the final results testing, but my results are not matching. To check where my code is going wrong, I need some test vector with intermediate result.

and I'm using RSA 2048 and SHA 256.

please help ... if anyone has it or if you know where can I get it? also any other method to test it.

Regards

Upvotes: 1

Views: 919

Answers (1)

Maarten Bodewes
Maarten Bodewes

Reputation: 94058

It is possible to take any other implementation and use step through or trace logging (printing to console) the intermediate values. You could also take the output of a known good implementation and reverse the modular exponentiation (raw encrypt with the public key) to get to the padding.

The main thing is indeed the padding. For instance Bouncy Castle has a org.bouncycastle.crypto.test.MGF1GeneratorTest class to test MGF1. That should be easy enough to step through.

Upvotes: 1

Related Questions