Crypt::OpenPGP::SignatureA Signature packet. | |
Download |
Crypt::OpenPGP::Signature Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Benjamin Trott
- Publisher web site:
- http://search.cpan.org/~btrott/
Crypt::OpenPGP::Signature Tags
Crypt::OpenPGP::Signature Description
A Signature packet. Crypt::OpenPGP::Signature is a signature packet.SYNOPSIS use Crypt::OpenPGP::Signature; my $sig = Crypt::OpenPGP::Signature->new( Key => $secret_key, Data => $plaintext, Type => 0x00, ); my $serialized = $sig->save; my $sig = Crypt::OpenPGP::Signature->parse($buffer); my $hashed_data = $sig->hash_data($plaintext); ## Look up public key by $sig->key_id to get $cert, then... my $is_valid_sig = $cert->key->verify($sig, $hashed_data);Crypt::OpenPGP::Signature implements PGP signature packets and provides functionality for hashing PGP packets to obtain message digests; these digests are then signed by the secret key to form a signature.Crypt::OpenPGP::Signature reads and writes both version 3 and version 4 signatures, along with the signature subpackets found in version 4 (see Crypt::OpenPGP::Signature::SubPacket). Requirements: · Perl
Crypt::OpenPGP::Signature Related Software