1Net::SSH::Perl::Key::ECUDsSeAr(3C)ontributed Perl DocumeNnetta:t:iSoSnH::Perl::Key::ECDSA(3)
2
3
4

NAME

6       Net::SSH::Perl::Key::ECDSA - Elliptical Curve DSA key object base class
7

SYNOPSIS

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

DESCRIPTION

13       Net::SSH::Perl::Key::ECDSA subclasses Net::SSH::Perl::Key to implement
14       the base class of an elliptical curve DSA key object.  The underlying
15       implementation is provided by Crypt::PK::ECC, and this class wraps
16       around that module to provide SSH-specific functionality (eg. taking in
17       a Net::SSH::Perl::Buffer blob and transforming it into a key object).
18

USAGE

20       Net::SSH::Perl::Key::ECDSA implements the interface described in the
21       documentation for Net::SSH::Perl::Key. Any differences or additions are
22       described here.
23
24   $key->read_private($file [, $passphrase])
25       Since this class is a base class, the read_private method reblesses to
26       the subclass based on the key type loaded.
27
28   $key->sign($data)
29       Wraps around Crypt::PK::ECC::sign_message to sign $data using the key
30       $key, then encodes that signature into an SSH-compatible signature
31       blob.
32
33       Returns the signature blob.
34
35   $key->verify($signature, $data)
36       Given a signature blob $signature and the original signed data $data,
37       attempts to verify the signature using the key $key.  This wraps around
38       Crypt::PK::ECC::verify_message to perform the core 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       Lance Kinley E<lkinley@loyaltymethods.com>
47
48       Copyright (c) 2016 Loyalty Methods, Inc.
49

POD ERRORS

51       Hey! The above document had some coding errors, which are explained
52       below:
53
54       Around line 191:
55           Unknown E content in E<lkinley@loyaltymethods.com>
56
57
58
59perl v5.38.0                      2023-08-08     Net::SSH::Perl::Key::ECDSA(3)
Impressum