1Crypt::OpenSSL::DSA::SiUgsneartuCroen(t3r)ibuted Perl DoCcruympetn:t:aOtpieonnSSL::DSA::Signature(3)
2
3
4

NAME

6         Crypt::OpenSSL::DSA::Signature - Digital Signature Object
7

SYNOPSIS

9         use Crypt::OpenSSL::DSA;
10         my $dsa_priv = Crypt::OpenSSL::DSA->read_priv_key( $filename );
11         my $sig_obj = $dsa_priv->do_sign($message);
12         my $dsa_pub = Crypt::OpenSSL::DSA->read_pub_key( $filename );
13         my $valid = $dsa_pub->do_verify($message, $sig_obj);
14
15         my $r = $sig_obj->get_r;
16         my $s = $sig_obj->get_s;
17
18         my $sig_obj2 = Crypt::OpenSSL::DSA::Signature->new();
19         $sig_obj2->set_r($r);
20         $sig_obj2->set_s($s);
21         my $valid = $dsa_pub->do_verify($message, $sig_obj2);
22

CLASS METHODS

24       $sig_obj = Crypt::OpenSSL::DSA::Signature->new();
25           Create a new DSA Signature Object.  You will need to call set_r and
26           set_s after you create this.
27

OBJECT METHODS

29       $r = $sig_obj->get_r;
30           Gets first member of signature pair.
31
32       $s = $sig_obj->get_s;
33           Gets second member of signature pair.
34
35       $r = $sig_obj->set_r;
36           Sets first member of signature pair.
37
38       $s = $sig_obj->set_s;
39           Sets second member of signature pair.
40

AUTHOR

42       T.J. Mather, <tjmather@maxmind.com>
43

SEE ALSO

45       Crypt::OpenSSL::DSA
46
47
48
49perl v5.32.0                      2020-07-28 Crypt::OpenSSL::DSA::Signature(3)
Impressum