Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Crypt::Perl::RSA::PKCSUser_Contributed Perl DocCrypt::Perl::RSA::PKCS1_v1_5(3)

NAME
       Crypt::Perl::RSA::PKCS1_v1_5 - PKCS1 v1.5 signature padding

SYNOPSIS
	   my $digest =	Digest::SHA::sha256('This is my	message.');

	   my $sig = Crypt::Perl::RSA::PKCS1_v1_5::encode(
	       $digest,
	       'sha256',   #digest OID;	see below
	       2048,	   #the	bit length of the keyas	modulus
	   );

	   #This value should match $digest.
	   my $digest_dec = Crypt::Perl::RSA::PKCS1_v1_5::decode(
	       $sig,
	       'sha256',
	   );

LIST OF	DIGEST OIDs
       o   sha512

       o   sha384

       o   sha256

       The following are considered too	weak for good security now; theyare
       included	for historical interest.

       o   sha1

       o   md5

       o   md2

perl v5.32.0			  2018-06-20   Crypt::Perl::RSA::PKCS1_v1_5(3)

NAME | SYNOPSIS | LIST OF DIGEST OIDs

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Crypt::Perl::RSA::PKCS1_v1_5&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help