1Crypt::RSA::SS::PKCS1v1U5s(e3r)Contributed Perl DocumentCartyipotn::RSA::SS::PKCS1v15(3)
2
3
4
6 Crypt::RSA::SS::PKCS1v15 - PKCS #1 v1.5 signatures.
7
9 my $pkcs = new Crypt::RSA::SS::PKCS1v15 (
10 Digest => 'MD5'
11 );
12
13 my $signature = $pkcs->sign (
14 Message => $message,
15 Key => $private,
16 ) || die $pss->errstr;
17
18 my $verify = $pkcs->verify (
19 Message => $message,
20 Key => $key,
21 Signature => $signature,
22 ) || die $pss->errstr;
23
25 This module implements PKCS #1 v1.5 signatures based on RSA. See [13]
26 for details on the scheme.
27
29 new()
30 Constructor. Takes a hash as argument with the following key:
31
32 Digest
33 Name of the Message Digest algorithm. Three Digest algorithms are
34 supported: MD2, MD5 and SHA1. Digest defaults to SHA1.
35
36 version()
37 Returns the version number of the module.
38
39 sign()
40 Computes a PKCS #1 v1.5 signature on a message with the private key of
41 the signer. sign() takes a hash argument with the following mandatory
42 keys:
43
44 Message
45 Message to be signed, a string of arbitrary length.
46
47 Key Private key of the signer, a Crypt::RSA::Key::Private object.
48
49 verify()
50 Verifies a signature generated with sign(). Returns a true value on
51 success and false on failure. $self->errstr is set to "Invalid
52 signature." or appropriate error on failure. verify() takes a hash
53 argument with the following mandatory keys:
54
55 Key Public key of the signer, a Crypt::RSA::Key::Public object.
56
57 Message
58 The original signed message, a string of arbitrary length.
59
60 Signature
61 Signature computed with sign(), a string.
62
64 See ERROR HANDLING in Crypt::RSA(3) manpage.
65
67 See BIBLIOGRAPHY in Crypt::RSA(3) manpage.
68
70 Vipul Ved Prakash, <mail@vipul.net>
71
73 Crypt::RSA(3), Crypt::RSA::Primitives(3), Crypt::RSA::Keys(3),
74 Crypt::RSA::EME::OAEP(3)
75
76
77
78perl v5.32.1 2021-01-27 Crypt::RSA::SS::PKCS1v15(3)