Crypt::EC_DSA - Elliptic Curve Digital Signature Algorithm
$Revision: 1.007 $ $Date: Thu Jun 8 21:56:53 PDT 2017 $
Elliptic Curve Digital Signature Algorithm
use Crypt::EC_DSA; my $ecdsa = new Crypt::EC_DSA; my ($pubkey, $seckey) = $ecdsa->keygen; my $msg = 'Hello, world!'; my $signature = $ecdsa->sign( Message => $msg, Key => $seckey ); print "Verified\n" if $ecdsa->verify( Message => $msg, Key => $pubkey, Signature => $signature );
Creates and returns a new Crypt::EC_DSA object. The following optional named parameters can be provided:
Curve - The name of the elliptic curve to use. Defaults to 'secp256k1'. To use an unnamed curve, set the curve using the curve accessor.
Debug - Set to a true value to have the module emit messages useful for debugging.
Generates and returns an ECDSA key-pair as a two-element list, with the public key as the first element and the secret key as the second.
Generates and returns an ECDSA signature. The following named parameters are required:
Key - The private key of the signer
Message - The message to be signed
Verify a signature. Returns a true value if the verification succeeds and false otherwise. The following named parameters are required:
Key - The public key of the signer
Signature - The signature
Message - The message that was signed
Accessors can be called with no arguments to query the value of an object property, or with a single argument, to set the property to a specific value (unless it is read-only).
Set true to emit helpful messages for debugging purposes, false otherwise. Default is false.
The elliptic curve to use (a Math::EllipticCurve::Prime object).
Crypt::Ed25519
A digital signature scheme with deterministic signatures.
Ashish Gulhati, <crypt-ecdsa at hash.neo.tc>
<crypt-ecdsa at hash.neo.tc>
Please report any bugs or feature requests to bug-crypt-ecdsa at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Crypt-EC_DSA. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-crypt-ecdsa at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Crypt::EC_DSA
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Crypt-EC_DSA
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Crypt-EC_DSA
CPAN Ratings
http://cpanratings.perl.org/d/Crypt-EC_DSA
Search CPAN
http://search.cpan.org/dist/Crypt-EC_DSA/
Copyright (c) 2017 Ashish Gulhati.
This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0.
See http://www.perlfoundation.org/artistic_license_2_0 for the full license terms.
To install Crypt::EC_DSA, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Crypt::EC_DSA
CPAN shell
perl -MCPAN -e shell install Crypt::EC_DSA
For more information on module installation, please visit the detailed CPAN module installation guide.