summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2016-11-21 11:38:54 +0000
committerschwarze <>2016-11-21 11:38:54 +0000
commitdc47dd5bb96a2161aead415c9419ab2d066cad91 (patch)
tree1ede26a1db85b8f2013024e701d9d55a167d9a51 /src
parentb69da245628428726c30adde4256b7f912c40598 (diff)
downloadopenbsd-dc47dd5bb96a2161aead415c9419ab2d066cad91.tar.gz
openbsd-dc47dd5bb96a2161aead415c9419ab2d066cad91.tar.bz2
openbsd-dc47dd5bb96a2161aead415c9419ab2d066cad91.zip
import DH_get_1024_160(3) from OpenSSL,
but do not include the functions we don't have
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/BN_get0_nist_prime_521.383
-rw-r--r--src/lib/libcrypto/man/Makefile3
2 files changed, 85 insertions, 1 deletions
diff --git a/src/lib/libcrypto/man/BN_get0_nist_prime_521.3 b/src/lib/libcrypto/man/BN_get0_nist_prime_521.3
new file mode 100644
index 0000000000..1e0f90a472
--- /dev/null
+++ b/src/lib/libcrypto/man/BN_get0_nist_prime_521.3
@@ -0,0 +1,83 @@
1.\" $OpenBSD: BN_get0_nist_prime_521.3,v 1.1 2016/11/21 11:38:54 schwarze Exp $
2.\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400
3.\"
4.\" This file was written by Rich Salz <rsalz@openssl.org>.
5.\" Copyright (c) 2016 The OpenSSL Project. All rights reserved.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions
9.\" are met:
10.\"
11.\" 1. Redistributions of source code must retain the above copyright
12.\" notice, this list of conditions and the following disclaimer.
13.\"
14.\" 2. Redistributions in binary form must reproduce the above copyright
15.\" notice, this list of conditions and the following disclaimer in
16.\" the documentation and/or other materials provided with the
17.\" distribution.
18.\"
19.\" 3. All advertising materials mentioning features or use of this
20.\" software must display the following acknowledgment:
21.\" "This product includes software developed by the OpenSSL Project
22.\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
23.\"
24.\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
25.\" endorse or promote products derived from this software without
26.\" prior written permission. For written permission, please contact
27.\" openssl-core@openssl.org.
28.\"
29.\" 5. Products derived from this software may not be called "OpenSSL"
30.\" nor may "OpenSSL" appear in their names without prior written
31.\" permission of the OpenSSL Project.
32.\"
33.\" 6. Redistributions of any form whatsoever must retain the following
34.\" acknowledgment:
35.\" "This product includes software developed by the OpenSSL Project
36.\" for use in the OpenSSL Toolkit (http://www.openssl.org/)"
37.\"
38.\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
39.\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
40.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
41.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
42.\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
43.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
44.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
45.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
46.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
47.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50.\"
51.Dd $Mdocdate: November 21 2016 $
52.Dt BN_GET0_NIST_PRIME_521 3
53.Os
54.Sh NAME
55.Nm BN_get0_nist_prime_192 ,
56.Nm BN_get0_nist_prime_224 ,
57.Nm BN_get0_nist_prime_256 ,
58.Nm BN_get0_nist_prime_384 ,
59.Nm BN_get0_nist_prime_521
60.Nd create standardized public primes or DH pairs
61.Sh SYNOPSIS
62.In openssl/bn.h
63.Ft const BIGNUM *
64.Fn BN_get0_nist_prime_192 void
65.Ft const BIGNUM *
66.Fn BN_get0_nist_prime_224 void
67.Ft const BIGNUM *
68.Fn BN_get0_nist_prime_256 void
69.Ft const BIGNUM *
70.Fn BN_get0_nist_prime_384 void
71.Ft const BIGNUM *
72.Fn BN_get0_nist_prime_521 void
73.Sh DESCRIPTION
74The
75.Fn BN_get0_nist_prime_192 ,
76.Fn BN_get0_nist_prime_224 ,
77.Fn BN_get0_nist_prime_256 ,
78.Fn BN_get0_nist_prime_384 ,
79and
80.Fn BN_get0_nist_prime_521
81functions return a
82.Vt BIGNUM
83for the specific NIST prime curve (e.g., P-256).
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile
index 1e69f877f3..27d2ced5f7 100644
--- a/src/lib/libcrypto/man/Makefile
+++ b/src/lib/libcrypto/man/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.52 2016/11/18 18:54:43 schwarze Exp $ 1# $OpenBSD: Makefile,v 1.53 2016/11/21 11:38:54 schwarze Exp $
2 2
3.include <bsd.own.mk> 3.include <bsd.own.mk>
4 4
@@ -43,6 +43,7 @@ MAN= \
43 BN_cmp.3 \ 43 BN_cmp.3 \
44 BN_copy.3 \ 44 BN_copy.3 \
45 BN_generate_prime.3 \ 45 BN_generate_prime.3 \
46 BN_get0_nist_prime_521.3 \
46 BN_mod_inverse.3 \ 47 BN_mod_inverse.3 \
47 BN_mod_mul_montgomery.3 \ 48 BN_mod_mul_montgomery.3 \
48 BN_mod_mul_reciprocal.3 \ 49 BN_mod_mul_reciprocal.3 \