![]() |
![]()
| ![]() |
![]()
NAMECrypt::RSA::SS::PKCS1v15 - PKCS #1 v1.5 signatures. SYNOPSISmy $pkcs = new Crypt::RSA::SS::PKCS1v15 ( Digest => 'MD5' ); my $signature = $pkcs->sign ( Message => $message, Key => $private, ) || die $pss->errstr; my $verify = $pkcs->verify ( Message => $message, Key => $key, Signature => $signature, ) || die $pss->errstr; DESCRIPTIONThis module implements PKCS #1 v1.5 signatures based on RSA. See [13] for details on the scheme. METHODSnew()Constructor. Takes a hash as argument with the following key:
version()Returns the version number of the module. sign()Computes a PKCS #1 v1.5 signature on a message with the private key of the signer. sign() takes a hash argument with the following mandatory keys: verify()Verifies a signature generated with sign(). Returns a true value on success and false on failure. $self->errstr is set to "Invalid signature." or appropriate error on failure. verify() takes a hash argument with the following mandatory keys: ERROR HANDLINGSee ERROR HANDLING in Crypt::RSA(3) manpage. BIBLIOGRAPHYSee BIBLIOGRAPHY in Crypt::RSA(3) manpage. AUTHORVipul Ved Prakash, <mail@vipul.net> SEE ALSOCrypt::RSA(3), Crypt::RSA::Primitives(3), Crypt::RSA::Keys(3), Crypt::RSA::EME::OAEP(3)
|