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  -  CRYPT::OPENSSL::DSA::SIGNATURE (3)

.ds Aq ’

NAME



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



CONTENTS

SYNOPSIS



  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 $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);



CLASS METHODS

$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.

OBJECT METHODS

$r = $sig_obj->get_r; Gets first member of signature pair.
$s = $sig_obj->get_s; Gets second member of signature pair.
$r = $sig_obj->set_r; Sets first member of signature pair.
$s = $sig_obj->set_s; Sets second member of signature pair.

AUTHOR

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

SEE ALSO

Crypt::OpenSSL::DSA
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CRYPT::OPENSSL::DSA::SIGNATURE (3) 2015-02-03

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