GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CRYPT::RSA::ES::PKCS1V15 (3)

.ds Aq ’

NAME

Crypt::RSA::ES::PKCS1v15 - PKCS #1 v1.5 padded encryption scheme based on RSA.

CONTENTS

SYNOPSIS



    my $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;



DESCRIPTION

This module implements PKCS #1 v1.5 padded encryption scheme based on RSA. See [13] for details on the encryption scheme.

METHODS

BInew()

Constructor.

BIversion()

Returns the version number of the module.

BIencrypt()

Encrypts a string with a public key and returns the encrypted string on success. encrypt() takes a hash argument with the following mandatory keys:
<B>MessageB> A string to be encrypted. The length of this string should not exceed k-10 octets, where k is the octet length of the RSA modulus. If Message is longer than k-10, the method will fail and set $self->errstr to Message too long.
<B>KeyB> Public key of the recipient, a Crypt::RSA::Key::Public object.

BIdecrypt()

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:
<B>CyphertextB> A string encrypted with encrypt(). The length of the cyphertext must be k octets, where k is the length of the RSA modulus.
<B>KeyB> Private key of the receiver, a Crypt::RSA::Key::Private object.

ERROR HANDLING

See ERROR HANDLING in Crypt::RSA(3) manpage.

BIBLIOGRAPHY

See BIBLIOGRAPHY in Crypt::RSA(3) manpage.

AUTHOR

Vipul Ved Prakash, <mail@vipul.net>

SEE ALSO

Crypt::RSA(3), Crypt::RSA::Primitives(3), Crypt::RSA::Keys(3), Crypt::RSA::SSA::PSS(3)
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CRYPT::RSA::ES::PKCS1V15 (3) 2009-06-07

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.