1Crypt::DSA::Signature(3U)ser Contributed Perl DocumentatiCornypt::DSA::Signature(3)
2
3
4
6 Crypt::DSA::Signature - DSA signature object
7
9 use Crypt::DSA::Signature;
10 my $sig = Crypt::DSA::Signature->new;
11
12 $sig->r($r);
13 $sig->s($s);
14
16 Crypt::DSA::Signature represents a DSA signature. It has 2 methods, r
17 and s, which are the big number representations of the 2 pieces of the
18 DSA signature.
19
21 Crypt::DSA::Signature->new( %options )
22
23 Creates a new signature object, and optionally initializes it with the
24 information in %options, which can contain:
25
26 * Content
27 An ASN.1-encoded string representing the DSA signature. In ASN.1
28 notation, this looks like:
29
30 SEQUENCE {
31 r INTEGER,
32 s INTEGER
33 }
34
35 If Content is provided, new will automatically call the deserialize
36 method to parse the content, and set the r and s methods on the
37 resulting Crypt::DSA::Signature object.
38
39 $sig->serialize
40
41 Serializes the signature object $sig into the format described above:
42 an ASN.1-encoded representation of the signature, using the ASN.1 syn‐
43 tax above.
44
46 Please see the Crypt::DSA manpage for author, copyright, and license
47 information.
48
49
50
51perl v5.8.8 2004-12-31 Crypt::DSA::Signature(3)