summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2016-11-20 17:12:03 +0000
committerschwarze <>2016-11-20 17:12:03 +0000
commitc558f7b0aa9d9700e31a514bbc59bf5b33ff69f0 (patch)
tree5da0db3da9e8b18a9a9499323cb8bf813a99e838 /src
parent4512d7be41e86f5aa329641c14e0cc1b9508dbcb (diff)
downloadopenbsd-c558f7b0aa9d9700e31a514bbc59bf5b33ff69f0.tar.gz
openbsd-c558f7b0aa9d9700e31a514bbc59bf5b33ff69f0.tar.bz2
openbsd-c558f7b0aa9d9700e31a514bbc59bf5b33ff69f0.zip
Add Copyright and license.
In the SYNOPSIS, show prototypes rather than #define directives. Clarify that BN_generate_prime_ex(3) takes the minimum length, not the exact length.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/BN_generate_prime.370
1 files changed, 65 insertions, 5 deletions
diff --git a/src/lib/libcrypto/man/BN_generate_prime.3 b/src/lib/libcrypto/man/BN_generate_prime.3
index 01eb4de1f8..a5fe7ea334 100644
--- a/src/lib/libcrypto/man/BN_generate_prime.3
+++ b/src/lib/libcrypto/man/BN_generate_prime.3
@@ -1,6 +1,56 @@
1.\" $OpenBSD: BN_generate_prime.3,v 1.2 2016/11/06 15:52:50 jmc Exp $ 1.\" $OpenBSD: BN_generate_prime.3,v 1.3 2016/11/20 17:12:03 schwarze Exp $
2.\" OpenSSL 2afb29b4 Aug 14 16:47:13 2014 -0400
2.\" 3.\"
3.Dd $Mdocdate: November 6 2016 $ 4.\" This file was written by Ulf Moeller <ulf@openssl.org>
5.\" Bodo Moeller <bodo@openssl.org>, and Matt Caswell <matt@openssl.org>.
6.\" Copyright (c) 2000, 2003, 2013, 2014 The OpenSSL Project.
7.\" All rights reserved.
8.\"
9.\" Redistribution and use in source and binary forms, with or without
10.\" modification, are permitted provided that the following conditions
11.\" are met:
12.\"
13.\" 1. Redistributions of source code must retain the above copyright
14.\" notice, this list of conditions and the following disclaimer.
15.\"
16.\" 2. Redistributions in binary form must reproduce the above copyright
17.\" notice, this list of conditions and the following disclaimer in
18.\" the documentation and/or other materials provided with the
19.\" distribution.
20.\"
21.\" 3. All advertising materials mentioning features or use of this
22.\" software must display the following acknowledgment:
23.\" "This product includes software developed by the OpenSSL Project
24.\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
25.\"
26.\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
27.\" endorse or promote products derived from this software without
28.\" prior written permission. For written permission, please contact
29.\" openssl-core@openssl.org.
30.\"
31.\" 5. Products derived from this software may not be called "OpenSSL"
32.\" nor may "OpenSSL" appear in their names without prior written
33.\" permission of the OpenSSL Project.
34.\"
35.\" 6. Redistributions of any form whatsoever must retain the following
36.\" acknowledgment:
37.\" "This product includes software developed by the OpenSSL Project
38.\" for use in the OpenSSL Toolkit (http://www.openssl.org/)"
39.\"
40.\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
41.\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
42.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
43.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
44.\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
45.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
46.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
47.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
48.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
49.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
50.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
51.\" OF THE POSSIBILITY OF SUCH DAMAGE.
52.\"
53.Dd $Mdocdate: November 20 2016 $
4.Dt BN_GENERATE_PRIME 3 54.Dt BN_GENERATE_PRIME 3
5.Os 55.Os
6.Sh NAME 56.Sh NAME
@@ -46,8 +96,18 @@
46.Fa "int a" 96.Fa "int a"
47.Fa "int b" 97.Fa "int b"
48.Fc 98.Fc
49.Fd #define BN_GENCB_set_old(gencb, callback, cb_arg) ... 99.Ft void
50.Fd #define BN_GENCB_set(gencb, callback, cb_arg) ... 100.Fo BN_GENCB_set_old
101.Fa "BN_GENCB *gencb"
102.Fa "void (*callback)(int, int, void *)"
103.Fa "void *cb_arg"
104.Fc
105.Ft void
106.Fo BN_GENCB_set
107.Fa "BN_GENCB *gencb"
108.Fa "int (*callback)(int, int, BN_GENCB *)"
109.Fa "void *cb_arg"
110.Fc
51.Pp 111.Pp
52Deprecated: 112Deprecated:
53.Pp 113.Pp
@@ -80,7 +140,7 @@ Deprecated:
80.Fc 140.Fc
81.Sh DESCRIPTION 141.Sh DESCRIPTION
82.Fn BN_generate_prime_ex 142.Fn BN_generate_prime_ex
83generates a pseudo-random prime number of bit length 143generates a pseudo-random prime number of at least bit length
84.Fa bits . 144.Fa bits .
85If 145If
86.Fa ret 146.Fa ret