1Crypt::OpenSSL::ECDSA(3U)ser Contributed Perl DocumentatiCornypt::OpenSSL::ECDSA(3)
2
3
4
6 Crypt::OpenSSL::ECDSA - Perl extension for OpenSSL ECDSA (Elliptic
7 Curve Digital Signature Algorithm)
8
10 use Crypt::OpenSSL::ECDSA;
11 $sig = Crypt::OpenSSL::ECDSA::ECDSA_do_sign( $digest, $eckey );
12 $r = $sig->get_r;
13 $s = $sig->get_s;
14
15 $sig = Crypt::OpenSSL::ECDSA::ECDSA_SIG->new();
16 $sig->set_r($r);
17 $sig->set_s($s);
18 Crypt::OpenSSL::ECDSA::ECDSA_do_verify( $digest, $sig, $eckey );
19
21 This module provides an interface to the ECDSA (Elliptic Curve Digital
22 Signature Algorithm) functions in OpenSSL
23
24 Tested against OpenSSL 1.0.2
25
26 Export
27 None by default.
28
29 Exportable constants
30 ECDSA_F_ECDSA_CHECK
31 ECDSA_F_ECDSA_DATA_NEW_METHOD
32 ECDSA_F_ECDSA_DO_SIGN
33 ECDSA_F_ECDSA_DO_VERIFY
34 ECDSA_F_ECDSA_SIGN_SETUP
35 ECDSA_R_BAD_SIGNATURE
36 ECDSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE
37 ECDSA_R_ERR_EC_LIB
38 ECDSA_R_MISSING_PARAMETERS
39 ECDSA_R_NEED_NEW_SETUP_VALUES
40 ECDSA_R_NON_FIPS_METHOD
41 ECDSA_R_RANDOM_NUMBER_GENERATION_FAILED
42 ECDSA_R_SIGNATURE_MALLOC_FAILED
43
45 new
46 $sig = Crypt::OpenSSL::ECDSA::ECDSA_SIG->new();
47
48 Create a new ECDSA Signature Object.
49
50 The internal "r" and "s" components are undefined.
51
53 get_r;
54 $r = $sig->get_r;
55
56 Gets signature "r" component.
57
58 The method returns a string representing a binary integer in
59 network (big-endian) byte order.
60
61 get_s;
62 $s = $sig->get_s;
63
64 Gets signature "s" component.
65
66 The method returns a string representing a binary integer in
67 network (big-endian) byte order.
68
69 set_r;
70 $sig->set_r($r);
71
72 Sets signature "r" component.
73
74 The argument is a string representing a binary integer in network
75 (big-endian) byte order.
76
77 set_s;
78 $sig->set_r($s);
79
80 Sets signature "s" component.
81
82 The argument is a string representing a binary integer in network
83 (big-endian) byte order.
84
86 OpenSSL documentation <http://www.openssl.org/>, Crypt::OpenSSL::EC,
87
89 Mike McCauley, <mikem@airspayce.com>
90
92 Copyright (C) 2014 by Mike McCauley
93
94 This library is free software; you can redistribute it and/or modify it
95 under the same terms as Perl itself, either Perl version 5.18.1 or, at
96 your option, any later version of Perl 5 you may have available.
97
99 Hey! The above document had some coding errors, which are explained
100 below:
101
102 Around line 151:
103 '=item' outside of any '=over'
104
105 Around line 160:
106 You forgot a '=back' before '=head1'
107
108 Around line 162:
109 '=item' outside of any '=over'
110
111 Around line 201:
112 You forgot a '=back' before '=head1'
113
114
115
116perl v5.28.0 2016-07-29 Crypt::OpenSSL::ECDSA(3)