Crypt::OpenPGP::MDC is a MDC (modification detection code) packet.
SYNOPSIS
use Crypt::OpenPGP::MDC;
my $mdc = Crypt::OpenPGP::MDC->new( Data => 'foobar' );
my $digest = $mdc->digest;
my $serialized = $mdc->save;
my $mdc = Crypt::OpenPGP::MDC->parse($buffer);
my $digest = $mdc->digest;
Crypt::OpenPGP::MDC is a PGP MDC (modification detection code) packet. Such a packet is used alongside Encrypted-MDC data packets so that modifications to the ciphertext can be detected. The MDC packet contains a SHA-1 digest of the plaintext for comparison with the decrypted plaintext.
You generally will never need to construct a Crypt::OpenPGP::MDC packet yourself; usage is by the Crypt::OpenPGP::Ciphertext object.
Product's homepage
Requirements:
· Perl