in reply to Help verifying RSA PSS signature in Perl with Crypt::RSA and Crypt::RSA::SS::PSS
Hello cryptques, and welcome to the Monastery!
I've tested those two modules and I *am* able to generate and verify a PSS signature in Perl...
Are you sure it’s working correctly? When I run your script with the line:
print ($verify ? 'verified' : 'failed'), "\n";
added at the end, I get an intermittent error:
13:17 >perl 592_SoPW.pl verified 13:17 >perl 592_SoPW.pl verified 13:17 >perl 592_SoPW.pl verified 13:18 >perl 592_SoPW.pl PARI: *** forbidden division t_INT % t_REAL. at C:/Perl/Strawberry +/spp-spec-64int-5.16.0.1-beta3-32bit-portable/perl/vendor/lib/Crypt/R +SA/Key/Private.pm line 127. 13:18 >
I’m running the latest version (1.99) of Crypt::RSA.
With a little detective work using eval and Carp, it appears the error is generated by the line:
$signature = $pss->sign ( Message => $message, Key => $private ) || die $pss->errstr;
Maybe some other monk knows of a fix or workaround?
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help verifying RSA PSS signature in Perl with Crypt::RSA and Crypt::RSA::SS::PSS
by cryptques (Novice) on Mar 31, 2013 at 09:19 UTC |