![]() |
![]()
| ![]() |
![]()
NAMECrypt::RSA::ES::PKCS1v15 - PKCS #1 v1.5 padded encryption scheme based on RSA. SYNOPSISmy $pkcs = new Crypt::RSA::ES::PKCS1v15; my $ct = $pkcs->encrypt( Key => $key, Message => $message ) || die $pkcs->errstr; my $pt = $pkcs->decrypt( Key => $key, Cyphertext => $ct ) || die $pkcs->errstr; DESCRIPTIONThis module implements PKCS #1 v1.5 padded encryption scheme based on RSA. See [13] for details on the encryption scheme. METHODSnew()Constructor. version()Returns the version number of the module. encrypt()Encrypts a string with a public key and returns the encrypted string on success. encrypt() takes a hash argument with the following mandatory keys:
decrypt()Decrypts cyphertext with a private key and returns plaintext on success. $self->errstr is set to "Decryption Error." or appropriate error on failure. decrypt() 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::SSA::PSS(3)
|