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  -  NET::SSH::PERL::KEY::RSA (3)

.ds Aq ’

NAME

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

CONTENTS

SYNOPSIS



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



DESCRIPTION

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

USAGE

Net::SSH::Perl::Key::RSA implements the interface described in the documentation for Net::SSH::Perl::Key. Any differences or additions are described here.

CW$key->sign($data)

Wraps around Crypt::RSA::SS::PKCS1v15::sign to sign $data using the private key portions of $key, then encodes that signature into an SSH-compatible signature blob.

Returns the signature blob.

CW$key->verify($signature, CW$data)

Given a signature blob $signature and the original signed data $data, attempts to verify the signature using the public key portion of $key. This wraps around Crypt::RSA::SS::PKCS1v15::verify to perform the core verification.

$signature should be an SSH-compatible signature blob, as returned from sign; $data should be a string of data, as passed to sign.

Returns true if the verification succeeds, false otherwise.

AUTHOR & COPYRIGHTS

Please see the Net::SSH::Perl manpage for author, copyright, and license information.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 NET::SSH::PERL::KEY::RSA (3) 2015-09-12

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