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

NAME

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

SYNOPSIS

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

DESCRIPTION

13       Net::SSH::Perl::Key::DSA subclasses Net::SSH::Perl::Key to implement a
14       key object, SSH style. This object provides all of the methods needed
15       for a DSA key object; the underlying implementation is provided by
16       Crypt::DSA, 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::DSA 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       Wraps around Crypt::DSA::sign to sign $data using the private key
27       portions 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 wraps around Crypt::DSA::verify to perform the core verification.
36
37       $signature should be an SSH-compatible signature blob, as returned from
38       sign; $data should be a string of data, as passed to sign.
39
40       Returns true if the verification succeeds, false otherwise.
41

AUTHOR & COPYRIGHTS

43       Please see the Net::SSH::Perl manpage for author, copyright, and
44       license information.
45
46
47
48perl v5.12.2                      2008-10-02       Net::SSH::Perl::Key::DSA(3)
Impressum