1Crypt::RSA::ES::PKCS1v1U5s(e3r)Contributed Perl DocumentCartyipotn::RSA::ES::PKCS1v15(3)
2
3
4

NAME

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

SYNOPSIS

10           my $pkcs = new Crypt::RSA::ES::PKCS1v15;
11
12           my $ct = $pkcs->encrypt( Key => $key, Message => $message ) ⎪⎪
13                       die $pkcs->errstr;
14
15           my $pt = $pkcs->decrypt( Key => $key, Cyphertext => $ct )   ⎪⎪
16                       die $pkcs->errstr;
17

DESCRIPTION

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

METHODS

23       new()
24
25       Constructor.
26
27       version()
28
29       Returns the version number of the module.
30
31       encrypt()
32
33       Encrypts a string with a public key and returns the encrypted string on
34       success. encrypt() takes a hash argument with the following mandatory
35       keys:
36
37       Message
38           A string to be encrypted. The length of this string should not
39           exceed k-10 octets, where k is the octet length of the RSA modulus.
40           If Message is longer than k-10, the method will fail and set
41           $self->errstr to "Message too long."
42
43       Key Public key of the recipient, a Crypt::RSA::Key::Public object.
44
45       decrypt()
46
47       Decrypts cyphertext with a private key and returns plaintext on suc‐
48       cess. $self->errstr is set to "Decryption Error." or appropriate error
49       on failure. decrypt() takes a hash argument with the following manda‐
50       tory keys:
51
52       Cyphertext
53           A string encrypted with encrypt(). The length of the cyphertext
54           must be k octets, where k is the length of the RSA modulus.
55
56       Key Private key of the receiver, a Crypt::RSA::Key::Private object.
57

ERROR HANDLING

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

BIBLIOGRAPHY

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

AUTHOR

65       Vipul Ved Prakash, <mail@vipul.net>
66

SEE ALSO

68       Crypt::RSA(3), Crypt::RSA::Primitives(3), Crypt::RSA::Keys(3),
69       Crypt::RSA::SSA::PSS(3)
70
71
72
73perl v5.8.8                       2007-04-17       Crypt::RSA::ES::PKCS1v15(3)
Impressum