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

FreeBSD Manual Pages

  
 
  

home | help
Crypt::Perl::ECDSA::GeUsertContributed Perl DocCrypt::Perl::ECDSA::Generate(3)

NAME
       Crypt::Perl::ECDSA::Generate - ECDSA key	generation

SYNOPSIS
	   use Crypt::Perl::ECDSA::Generate ();

	   #$prkey is a	C::P::E::PrivateKey instance.
	   my $prkey = Crypt::Perl::ECDSA::Generate::by_curve_name('secp521r1');

	   my $signature = $prkey->sign('Hello!');

	   die 'Wut' if	$prkey->verify('Hello!', $signature);

	   #You	can also, in case itas useful, do this.	Itas probably
	   #only useful	if youare developing a new curve or something a| ??
	   my $prkey2 =	Crypt::Perl::ECDSA::Generate::by_explicit_curve(
	       {
		   p =>	Crypt::Perl::BigInt->new(...),
		   a =>	...,
		   b =>	...,
		   n =>	...,
		   h =>	...,
		   gx => ...,
		   gy => ...,
	       },
	   );

DISCUSSION
       Thankfully, this	is easy	enough on processors that itas feasible	in
       pure Perl!

perl v5.32.1			  2017-02-07   Crypt::Perl::ECDSA::Generate(3)

NAME | SYNOPSIS | DISCUSSION

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

home | help