Crypt::...ignature(3)

πŸ’– NAME πŸ’–

okay so bestie, Crypt::DSA::Signature is literally a DSA signature object. that's the whole vibe. this is Crypt::...ignature(3) β€” yes, section 3 of the User Contributed Perl Documentation, we love a perl manpage moment πŸŽ€


✨ SYNOPSIS ✨

look at this, it's so clean it's giving main character energy:

use Crypt::DSA::Signature;
my $sig = Crypt::DSA::Signature->new;

$sig->r($r);
$sig->s($s);

πŸ¦‹ DESCRIPTION πŸ¦‹

so Crypt::DSA::Signature represents a DSA signature. and the way that it works?? it has exactly 2 methods, r and s, which are the big number representations of the 2 pieces of the DSA signature. two little numbers, one whole signature. iconic. periodt πŸ’…


🌸 USAGE 🌸

πŸŽ€ Crypt::DSA::Signature->new( %options )

creates a brand new signature object for u, and optionally initializes it with the info from %options 🫢 which can contain:

  • Content β€” an ASN.1-encoded string representing the DSA signature. in ASN.1 notation, this looks like:
SEQUENCE {
    r INTEGER,
    s INTEGER
}

if Content is provided, new will automatically call the deserialize method to parse the content, and set the r and s methods on the resulting Crypt::DSA::Signature object. so it does the work for u, no cap 😌

⭐ $sig->serialize

serializes the signature object $sig into the format described above: an ASN.1-encoded representation of the signature, using the ASN.1 syntax above. it's giving reverse uno card πŸ”₯


πŸ‘‘ AUTHOR & COPYRIGHTS πŸ‘‘

bestie please go see the Crypt::DSA manpage for author, copyright, and license information πŸ’œ that's where all the legal fairy dust lives 🧚


and that's a wrap, gorgeous ✨ this lil page is perl v5.42.2, dated 2026-07-03 β€” slay, go sign something πŸ’–πŸŒˆ
πŸ“¦ where this page comes from