1Net::SSH::Perl::Key::RSUAs(e3r)Contributed Perl DocumentNaetti:o:nSSH::Perl::Key::RSA(3)
2
3
4

NAME

6       Net::SSH::Perl::Key::RSA - RSA key object
7

SYNOPSIS

9           use Net::SSH::Perl::Key;
10           my $key = Net::SSH::Perl::Key->new('RSA');
11

DESCRIPTION

13       Net::SSH::Perl::Key::RSA subclasses Net::SSH::Perl::Key to implement a
14       key object, SSH style. This object provides all of the methods needed
15       for a RSA key object; the underlying implementation is provided by
16       Crypt::RSA, and this class wraps around that module to provide SSH-spe‐
17       cific functionality (eg. taking in a Net::SSH::Perl::Buffer blob and
18       transforming it into a key object).
19

USAGE

21       Net::SSH::Perl::Key::RSA implements the interface described in the doc‐
22       umentation for Net::SSH::Perl::Key. Any differences or additions are
23       described here.
24
25       $key->sign($data)
26
27       Wraps around Crypt::RSA::SS::PKCS1v15::sign to sign $data using the
28       private key portions of $key, then encodes that signature into an SSH-
29       compatible signature blob.
30
31       Returns the signature blob.
32
33       $key->verify($signature, $data)
34
35       Given a signature blob $signature and the original signed data $data,
36       attempts to verify the signature using the public key portion of $key.
37       This wraps around Crypt::RSA::SS::PKCS1v15::verify to perform the core
38       verification.
39
40       $signature should be an SSH-compatible signature blob, as returned from
41       sign; $data should be a string of data, as passed to sign.
42
43       Returns true if the verification succeeds, false otherwise.
44

AUTHOR & COPYRIGHTS

46       Please see the Net::SSH::Perl manpage for author, copyright, and
47       license information.
48
49
50
51perl v5.8.8                       2003-12-03       Net::SSH::Perl::Key::RSA(3)
Impressum