|
From: Yang Y. <yan...@am...> - 2006-06-28 02:20:16
|
for version 0.23,
I tried $rsa->public_decrypt($encrypted_string),
then it segfaults,
0.22 doesn't segfault, but it gave error:
Can't locate auto/Crypt/OpenSSL/RSA/public_decr.al in @INC (@INC contains:
......
)
I also tried the sample code from CPAN,
####################
$rsa_priv->use_md5_hash(); # use_sha1_hash is the default
$signature = $rsa_priv->sign($plaintext);
print "Signed correctly\n" if ($rsa->verify($plaintext, $signature));
#################
if I have the first sentence, it fails to verify,
if I delete it (defaulting to sha1), it works.
Thanks
Yang
|