GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Crypt::OpenSSL::ECDSA(3) User Contributed Perl Documentation Crypt::OpenSSL::ECDSA(3)

Crypt::OpenSSL::ECDSA - Perl extension for OpenSSL ECDSA (Elliptic Curve Digital Signature Algorithm)

    use Crypt::OpenSSL::ECDSA;
    $sig = Crypt::OpenSSL::ECDSA::ECDSA_do_sign( $digest, $eckey );
    $r = $sig->get_r;
    $s = $sig->get_s;

    $sig = Crypt::OpenSSL::ECDSA::ECDSA_SIG->new();
    $sig->set_r($r);
    $sig->set_s($s);
    Crypt::OpenSSL::ECDSA::ECDSA_do_verify( $digest, $sig, $eckey );

This module provides an interface to the ECDSA (Elliptic Curve Digital Signature Algorithm) functions in OpenSSL

Tested against OpenSSL 1.0.2

None by default.

    ECDSA_F_ECDSA_CHECK
    ECDSA_F_ECDSA_DATA_NEW_METHOD
    ECDSA_F_ECDSA_DO_SIGN
    ECDSA_F_ECDSA_DO_VERIFY
    ECDSA_F_ECDSA_SIGN_SETUP
    ECDSA_R_BAD_SIGNATURE
    ECDSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE
    ECDSA_R_ERR_EC_LIB
    ECDSA_R_MISSING_PARAMETERS
    ECDSA_R_NEED_NEW_SETUP_VALUES
    ECDSA_R_NON_FIPS_METHOD
    ECDSA_R_RANDOM_NUMBER_GENERATION_FAILED
    ECDSA_R_SIGNATURE_MALLOC_FAILED

new
    $sig = Crypt::OpenSSL::ECDSA::ECDSA_SIG->new();
    

Create a new ECDSA Signature Object.

The internal "r" and "s" components are undefined.

get_r;
    $r = $sig->get_r;
    

Gets signature "r" component.

The method returns a string representing a binary integer in network (big-endian) byte order.

get_s;
    $s = $sig->get_s;
    

Gets signature "s" component.

The method returns a string representing a binary integer in network (big-endian) byte order.

set_r;
    $sig->set_r($r);
    

Sets signature "r" component.

The argument is a string representing a binary integer in network (big-endian) byte order.

set_s;
    $sig->set_r($s);
    

Sets signature "s" component.

The argument is a string representing a binary integer in network (big-endian) byte order.

OpenSSL documentation <http://www.openssl.org/>, Crypt::OpenSSL::EC,

Mike McCauley, <mikem@airspayce.com>

Copyright (C) 2014 by Mike McCauley

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.18.1 or, at your option, any later version of Perl 5 you may have available.

Hey! The above document had some coding errors, which are explained below:
Around line 151:
'=item' outside of any '=over'
Around line 160:
You forgot a '=back' before '=head1'
Around line 162:
'=item' outside of any '=over'
Around line 201:
You forgot a '=back' before '=head1'
2021-04-17 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.