NAME

Crypt::OpenSSL::EVP::MD - OpenSSL EVP_MD

SYNOPSIS

use Crypt::OpenSSL::EVP::MD;

my $hash_name = 'SHA256';
my $md = Crypt::OpenSSL::EVP::MD->new( $hash_name );

my $block_size = $md->block_size();
my $size = $md->size();

my $msg = 'abc';
my $dgst = $md->digest($msg);

DESCRIPTION

new($hash_name)
my $md = Crypt::OpenSSL::EVP::MD->new($hash_name);
size()

same with EVP_MD_size();

my $size = $md->size();
block_size()

same with EVP_MD_block_size();

my $block_size = $md->block_size();
digest($msg)

the digest of $msg

my $msg = 'abc';
my $dgst = $md->digest($msg);

SEE ALSO

Crypt::OpenSSL::Bignum