summaryrefslogtreecommitdiffstats
path: root/secure/lib/libcrypto/man/ecdsa.3
diff options
context:
space:
mode:
Diffstat (limited to 'secure/lib/libcrypto/man/ecdsa.3')
-rw-r--r--secure/lib/libcrypto/man/ecdsa.369
1 files changed, 30 insertions, 39 deletions
diff --git a/secure/lib/libcrypto/man/ecdsa.3 b/secure/lib/libcrypto/man/ecdsa.3
index fbc987b..e0c1eb2 100644
--- a/secure/lib/libcrypto/man/ecdsa.3
+++ b/secure/lib/libcrypto/man/ecdsa.3
@@ -1,15 +1,7 @@
-.\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.37
+.\" Automatically generated by Pod::Man 2.22 (Pod::Simple 3.07)
.\"
.\" Standard preamble:
.\" ========================================================================
-.de Sh \" Subsection heading
-.br
-.if t .Sp
-.ne 5
-.PP
-\fB\\$1\fR
-.PP
-..
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
@@ -25,11 +17,11 @@
..
.\" Set up some character translations and predefined strings. \*(-- will
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
-.\" double quote, and \*(R" will give a right double quote. | will give a
-.\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to
-.\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C'
-.\" expand to `' in nroff, nothing in troff, for use with C<>.
-.tr \(*W-|\(bv\*(Tr
+.\" double quote, and \*(R" will give a right double quote. \*(C+ will
+.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
+.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
+.\" nothing in troff, for use with C<>.
+.tr \(*W-
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
.ie n \{\
. ds -- \(*W-
@@ -48,22 +40,25 @@
. ds R" ''
'br\}
.\"
+.\" Escape single quotes in literal strings from groff's Unicode transform.
+.ie \n(.g .ds Aq \(aq
+.el .ds Aq '
+.\"
.\" If the F register is turned on, we'll generate index entries on stderr for
-.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
+.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
.\" entries marked with X<> in POD. Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
-.if \nF \{\
+.ie \nF \{\
. de IX
. tm Index:\\$1\t\\n%\t"\\$2"
..
. nr % 0
. rr F
.\}
-.\"
-.\" For nroff, turn off justification. Always turn off hyphenation; it makes
-.\" way too many mistakes in technical documents.
-.hy 0
-.if n .na
+.el \{\
+. de IX
+..
+.\}
.\"
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
.\" Fear. Run. Save yourself. No user-serviceable parts.
@@ -129,24 +124,24 @@
.\" ========================================================================
.\"
.IX Title "ecdsa 3"
-.TH ecdsa 3 "2010-03-24" "0.9.8n" "OpenSSL"
+.TH ecdsa 3 "2010-11-16" "0.9.8p" "OpenSSL"
+.\" For nroff, turn off justification. Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
+.if n .ad l
+.nh
.SH "NAME"
ecdsa \- Elliptic Curve Digital Signature Algorithm
.SH "SYNOPSIS"
.IX Header "SYNOPSIS"
.Vb 1
\& #include <openssl/ecdsa.h>
-.Ve
-.PP
-.Vb 5
+\&
\& ECDSA_SIG* ECDSA_SIG_new(void);
\& void ECDSA_SIG_free(ECDSA_SIG *sig);
\& int i2d_ECDSA_SIG(const ECDSA_SIG *sig, unsigned char **pp);
\& ECDSA_SIG* d2i_ECDSA_SIG(ECDSA_SIG **sig, const unsigned char **pp,
\& long len);
-.Ve
-.PP
-.Vb 20
+\&
\& ECDSA_SIG* ECDSA_do_sign(const unsigned char *dgst, int dgst_len,
\& EC_KEY *eckey);
\& ECDSA_SIG* ECDSA_do_sign_ex(const unsigned char *dgst, int dgstlen,
@@ -167,16 +162,12 @@ ecdsa \- Elliptic Curve Digital Signature Algorithm
\& int dgstlen, const unsigned char *sig,
\& int siglen, EC_KEY *eckey);
\& int ECDSA_size(const EC_KEY *eckey);
-.Ve
-.PP
-.Vb 4
+\&
\& const ECDSA_METHOD* ECDSA_OpenSSL(void);
\& void ECDSA_set_default_method(const ECDSA_METHOD *meth);
\& const ECDSA_METHOD* ECDSA_get_default_method(void);
\& int ECDSA_set_method(EC_KEY *eckey,const ECDSA_METHOD *meth);
-.Ve
-.PP
-.Vb 6
+\&
\& int ECDSA_get_ex_new_index(long argl, void *argp,
\& CRYPTO_EX_new *new_func,
\& CRYPTO_EX_dup *dup_func,
@@ -266,7 +257,7 @@ named curve secp192k1.
First step: create a \s-1EC_KEY\s0 object (note: this part is \fBnot\fR \s-1ECDSA\s0
specific)
.PP
-.Vb 16
+.Vb 10
\& int ret;
\& ECDSA_SIG *sig;
\& EC_KEY *eckey = EC_KEY_new();
@@ -274,8 +265,8 @@ specific)
\& {
\& /* error */
\& }
-\& key->group = EC_GROUP_new_by_nid(NID_secp192k1);
-\& if (key->group == NULL)
+\& key\->group = EC_GROUP_new_by_nid(NID_secp192k1);
+\& if (key\->group == NULL)
\& {
\& /* error */
\& }
@@ -286,7 +277,7 @@ specific)
.Ve
.PP
Second step: compute the \s-1ECDSA\s0 signature of a \s-1SHA\-1\s0 hash value
-using \fBECDSA_do_sign\fR
+using \fBECDSA_do_sign\fR
.PP
.Vb 5
\& sig = ECDSA_do_sign(digest, 20, eckey);
@@ -325,7 +316,7 @@ or using \fBECDSA_verify\fR
and finally evaluate the return value:
.PP
.Vb 12
-\& if (ret == -1)
+\& if (ret == \-1)
\& {
\& /* error */
\& }
OpenPOWER on IntegriCloud