diff options
author | schwarze <> | 2016-11-21 14:27:38 +0000 |
---|---|---|
committer | schwarze <> | 2016-11-21 14:27:38 +0000 |
commit | a832a38212b47306dfce4cb57d95dd71eeeba871 (patch) | |
tree | 719ff159a00257157326f14e4b59ec157dd9e0a9 /src | |
parent | 0d01f90c1335701056a00536c40e6975abd289d3 (diff) | |
download | openbsd-a832a38212b47306dfce4cb57d95dd71eeeba871.tar.gz openbsd-a832a38212b47306dfce4cb57d95dd71eeeba871.tar.bz2 openbsd-a832a38212b47306dfce4cb57d95dd71eeeba871.zip |
Add Copyright and license.
Merge some additional information from OpenSSL.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/man/ECDSA_SIG_new.3 | 78 |
1 files changed, 73 insertions, 5 deletions
diff --git a/src/lib/libcrypto/man/ECDSA_SIG_new.3 b/src/lib/libcrypto/man/ECDSA_SIG_new.3 index d71d8d6133..13eb685267 100644 --- a/src/lib/libcrypto/man/ECDSA_SIG_new.3 +++ b/src/lib/libcrypto/man/ECDSA_SIG_new.3 | |||
@@ -1,6 +1,55 @@ | |||
1 | .\" $OpenBSD: ECDSA_SIG_new.3,v 1.3 2016/11/14 18:23:30 jmc Exp $ | 1 | .\" $OpenBSD: ECDSA_SIG_new.3,v 1.4 2016/11/21 14:27:38 schwarze Exp $ |
2 | .\" OpenSSL e6390aca Jul 21 10:06:03 2015 -0400 | ||
2 | .\" | 3 | .\" |
3 | .Dd $Mdocdate: November 14 2016 $ | 4 | .\" This file was written by Nils Larsch <nils@openssl.org>. |
5 | .\" Copyright (c) 2004, 2005, 2012, 2013 The OpenSSL Project. | ||
6 | .\" All rights reserved. | ||
7 | .\" | ||
8 | .\" Redistribution and use in source and binary forms, with or without | ||
9 | .\" modification, are permitted provided that the following conditions | ||
10 | .\" are met: | ||
11 | .\" | ||
12 | .\" 1. Redistributions of source code must retain the above copyright | ||
13 | .\" notice, this list of conditions and the following disclaimer. | ||
14 | .\" | ||
15 | .\" 2. Redistributions in binary form must reproduce the above copyright | ||
16 | .\" notice, this list of conditions and the following disclaimer in | ||
17 | .\" the documentation and/or other materials provided with the | ||
18 | .\" distribution. | ||
19 | .\" | ||
20 | .\" 3. All advertising materials mentioning features or use of this | ||
21 | .\" software must display the following acknowledgment: | ||
22 | .\" "This product includes software developed by the OpenSSL Project | ||
23 | .\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
24 | .\" | ||
25 | .\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
26 | .\" endorse or promote products derived from this software without | ||
27 | .\" prior written permission. For written permission, please contact | ||
28 | .\" openssl-core@openssl.org. | ||
29 | .\" | ||
30 | .\" 5. Products derived from this software may not be called "OpenSSL" | ||
31 | .\" nor may "OpenSSL" appear in their names without prior written | ||
32 | .\" permission of the OpenSSL Project. | ||
33 | .\" | ||
34 | .\" 6. Redistributions of any form whatsoever must retain the following | ||
35 | .\" acknowledgment: | ||
36 | .\" "This product includes software developed by the OpenSSL Project | ||
37 | .\" for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
38 | .\" | ||
39 | .\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
40 | .\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
41 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
42 | .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
43 | .\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
44 | .\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
45 | .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
46 | .\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
47 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
48 | .\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | ||
51 | .\" | ||
52 | .Dd $Mdocdate: November 21 2016 $ | ||
4 | .Dt ECDSA_SIG_NEW 3 | 53 | .Dt ECDSA_SIG_NEW 3 |
5 | .Os | 54 | .Os |
6 | .Sh NAME | 55 | .Sh NAME |
@@ -143,6 +192,13 @@ | |||
143 | .Fa "const ECDSA_METHOD *meth" | 192 | .Fa "const ECDSA_METHOD *meth" |
144 | .Fc | 193 | .Fc |
145 | .Sh DESCRIPTION | 194 | .Sh DESCRIPTION |
195 | These functions provide a low level interface to ECDSA. | ||
196 | Most applications should use the higher level EVP interface such as | ||
197 | .Xr EVP_DigestSignInit 3 | ||
198 | or | ||
199 | .Xr EVP_DigestVerifyInit 3 | ||
200 | instead. | ||
201 | .Pp | ||
146 | The | 202 | The |
147 | .Vt ECDSA_SIG | 203 | .Vt ECDSA_SIG |
148 | structure consists of two | 204 | structure consists of two |
@@ -164,7 +220,7 @@ allocates a new | |||
164 | .Vt ECDSA_SIG | 220 | .Vt ECDSA_SIG |
165 | structure (note: this function also allocates the | 221 | structure (note: this function also allocates the |
166 | .Vt BIGNUM Ns s ) | 222 | .Vt BIGNUM Ns s ) |
167 | and initialize it. | 223 | and initializes it. |
168 | .Pp | 224 | .Pp |
169 | .Fn ECDSA_SIG_free | 225 | .Fn ECDSA_SIG_free |
170 | frees the | 226 | frees the |
@@ -307,11 +363,21 @@ using the public key | |||
307 | .Fn ECDSA_size | 363 | .Fn ECDSA_size |
308 | returns the maximum length signature or 0 on error. | 364 | returns the maximum length signature or 0 on error. |
309 | .Pp | 365 | .Pp |
310 | .Fn ECDSA_sign_setup | 366 | .Fn ECDSA_sign , |
367 | .Fn ECDSA_sign_ex , | ||
311 | and | 368 | and |
312 | .Fn ECDSA_sign | 369 | .Fn ECDSA_sign_setup |
313 | return 1 if successful or 0 on error. | 370 | return 1 if successful or 0 on error. |
314 | .Pp | 371 | .Pp |
372 | .Fn ECDSA_do_sign | ||
373 | and | ||
374 | .Fn ECDSA_do_sign_ex | ||
375 | return a pointer to an allocated | ||
376 | .Vt ECDSA_SIG | ||
377 | structure or | ||
378 | .Dv NULL | ||
379 | on error. | ||
380 | .Pp | ||
315 | .Fn ECDSA_verify | 381 | .Fn ECDSA_verify |
316 | and | 382 | and |
317 | .Fn ECDSA_do_verify | 383 | .Fn ECDSA_do_verify |
@@ -389,6 +455,8 @@ if (ret == -1) { | |||
389 | .Ed | 455 | .Ed |
390 | .Sh SEE ALSO | 456 | .Sh SEE ALSO |
391 | .Xr dsa 3 , | 457 | .Xr dsa 3 , |
458 | .Xr EVP_DigestSignInit 3 , | ||
459 | .Xr EVP_DigestVerifyInit 3 , | ||
392 | .Xr rsa 3 | 460 | .Xr rsa 3 |
393 | .Sh STANDARDS | 461 | .Sh STANDARDS |
394 | ANSI X9.62, US Federal Information Processing Standard FIPS 186-2 | 462 | ANSI X9.62, US Federal Information Processing Standard FIPS 186-2 |