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::PK::RSA, and this class wraps around that module to provide SSH-
17       specific 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
22       documentation for Net::SSH::Perl::Key. Any differences or additions are
23       described here.
24
25   $key->sign($data)
26       Uses Crypt::PK::RSA (CryptX module) to sign $data using the private key
27       portion of $key, then encodes that signature into an SSH-compatible
28       signature blob.
29
30       Returns the signature blob.
31
32   $key->verify($signature, $data)
33       Given a signature blob $signature and the original signed data $data,
34       attempts to verify the signature using the public key portion of $key.
35       This uses Crypt::PK::RSA::verify_message to perform the core
36       verification.
37
38       $signature should be an SSH-compatible signature blob, as returned from
39       sign; $data should be a string of data, as passed to sign.
40
41       Returns true if the verification succeeds, false otherwise.
42

AUTHOR & COPYRIGHTS

44       Please see the Net::SSH::Perl manpage for author, copyright, and
45       license information.
46
47
48
49perl v5.32.1                      2021-01-27       Net::SSH::Perl::Key::RSA(3)
Impressum