.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Crypt::OpenSSL::DSA::Signature 3pm" .TH Crypt::OpenSSL::DSA::Signature 3pm 2024-03-07 "perl v5.38.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME .Vb 1 \& Crypt::OpenSSL::DSA::Signature \- Digital Signature Object .Ve .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 6 \& use Crypt::OpenSSL::DSA; \& my $dsa_priv = Crypt::OpenSSL::DSA\->read_priv_key( $filename ); \& my $sig_obj = $dsa_priv\->do_sign($message); \& my $dsa_pub = Crypt::OpenSSL::DSA\->read_pub_key( $filename ); \& my $valid = $dsa_pub\->do_verify($message, $sig_obj); \& my $sig_size = $dsa_priv\->get_sig_size(); \& \& my $r = $sig_obj\->get_r; \& my $s = $sig_obj\->get_s; \& \& my $sig_obj2 = Crypt::OpenSSL::DSA::Signature\->new(); \& $sig_obj2\->set_r($r); \& $sig_obj2\->set_s($s); \& my $valid = $dsa_pub\->do_verify($message, $sig_obj2); .Ve .SH "CLASS METHODS" .IX Header "CLASS METHODS" .ie n .IP "$sig_obj = Crypt::OpenSSL::DSA::Signature\->\fBnew()\fR;" 4 .el .IP "\f(CW$sig_obj\fR = Crypt::OpenSSL::DSA::Signature\->\fBnew()\fR;" 4 .IX Item "$sig_obj = Crypt::OpenSSL::DSA::Signature->new();" Create a new DSA Signature Object. You will need to call set_r and set_s after you create this. .SH "OBJECT METHODS" .IX Header "OBJECT METHODS" .ie n .IP "$r = $sig_obj\->get_r;" 4 .el .IP "\f(CW$r\fR = \f(CW$sig_obj\fR\->get_r;" 4 .IX Item "$r = $sig_obj->get_r;" Gets first member of signature pair. .ie n .IP "$s = $sig_obj\->get_s;" 4 .el .IP "\f(CW$s\fR = \f(CW$sig_obj\fR\->get_s;" 4 .IX Item "$s = $sig_obj->get_s;" Gets second member of signature pair. .ie n .IP "$r = $sig_obj\->set_r;" 4 .el .IP "\f(CW$r\fR = \f(CW$sig_obj\fR\->set_r;" 4 .IX Item "$r = $sig_obj->set_r;" Sets first member of signature pair. .ie n .IP "$s = $sig_obj\->set_s;" 4 .el .IP "\f(CW$s\fR = \f(CW$sig_obj\fR\->set_s;" 4 .IX Item "$s = $sig_obj->set_s;" Sets second member of signature pair. .SH AUTHOR .IX Header "AUTHOR" T.J. Mather, .SH "SEE ALSO" .IX Header "SEE ALSO" Crypt::OpenSSL::DSA