diff options
| author | schwarze <> | 2016-11-21 11:43:37 +0000 |
|---|---|---|
| committer | schwarze <> | 2016-11-21 11:43:37 +0000 |
| commit | 686e03eea1e2201402c83b87361a3cd59ec5b6ee (patch) | |
| tree | 5d904d52eb8ab36962c2be8b66ed0f94a70c00fd /src | |
| parent | 6844d33c184585284d4c5236485532c8ea1cae83 (diff) | |
| download | openbsd-686e03eea1e2201402c83b87361a3cd59ec5b6ee.tar.gz openbsd-686e03eea1e2201402c83b87361a3cd59ec5b6ee.tar.bz2 openbsd-686e03eea1e2201402c83b87361a3cd59ec5b6ee.zip | |
Add Copyright and license.
Improve description of DH_check(3) results using information from
OpenSSL manual and a look at the source code, leaving out the bits
we don't have.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/man/DH_generate_parameters.3 | 83 |
1 files changed, 70 insertions, 13 deletions
diff --git a/src/lib/libcrypto/man/DH_generate_parameters.3 b/src/lib/libcrypto/man/DH_generate_parameters.3 index dc4289355d..975b3745d2 100644 --- a/src/lib/libcrypto/man/DH_generate_parameters.3 +++ b/src/lib/libcrypto/man/DH_generate_parameters.3 | |||
| @@ -1,4 +1,52 @@ | |||
| 1 | .\" $OpenBSD: DH_generate_parameters.3,v 1.4 2016/11/21 09:56:35 schwarze Exp $ | 1 | .\" $OpenBSD: DH_generate_parameters.3,v 1.5 2016/11/21 11:43:37 schwarze Exp $ |
| 2 | .\" OpenSSL 05ea606a May 20 20:52:46 2016 -0400 | ||
| 3 | .\" | ||
| 4 | .\" This file was written by Ulf Moeller <ulf@openssl.org>. | ||
| 5 | .\" Copyright (c) 2000, 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. | ||
| 2 | .\" | 50 | .\" |
| 3 | .Dd $Mdocdate: November 21 2016 $ | 51 | .Dd $Mdocdate: November 21 2016 $ |
| 4 | .Dt DH_GENERATE_PARAMETERS 3 | 52 | .Dt DH_GENERATE_PARAMETERS 3 |
| @@ -62,19 +110,28 @@ is called; see | |||
| 62 | .Pp | 110 | .Pp |
| 63 | .Fn DH_check | 111 | .Fn DH_check |
| 64 | validates Diffie-Hellman parameters. | 112 | validates Diffie-Hellman parameters. |
| 65 | It checks that | 113 | If no problems are found, |
| 114 | .Pf * Ar codes | ||
| 115 | is set to zero. | ||
| 116 | Otherwise, one or more of the following bits are set: | ||
| 117 | .Bl -tag -width Ds | ||
| 118 | .It Dv DH_CHECK_P_NOT_PRIME | ||
| 119 | The parameter | ||
| 66 | .Fa dh->p | 120 | .Fa dh->p |
| 67 | is a safe prime, and that | 121 | is not prime. |
| 122 | .It Dv DH_CHECK_P_NOT_SAFE_PRIME | ||
| 123 | The parameter | ||
| 124 | .Fa dh->p | ||
| 125 | is not a safe prime. | ||
| 126 | .It Dv DH_UNABLE_TO_CHECK_GENERATOR | ||
| 127 | The generator | ||
| 128 | .Fa dh->g | ||
| 129 | cannot be checked for suitability: it is neither 2 nor 5. | ||
| 130 | .It Dv DH_NOT_SUITABLE_GENERATOR | ||
| 131 | The generator | ||
| 68 | .Fa dh->g | 132 | .Fa dh->g |
| 69 | is a suitable generator. | 133 | is not suitable. |
| 70 | In the case of an error, the bit flags | 134 | .El |
| 71 | .Dv DH_CHECK_P_NOT_SAFE_PRIME | ||
| 72 | or | ||
| 73 | .Dv DH_NOT_SUITABLE_GENERATOR | ||
| 74 | are set in | ||
| 75 | .Pf * Fa codes . | ||
| 76 | .Dv DH_UNABLE_TO_CHECK_GENERATOR | ||
| 77 | is set if the generator cannot be checked, i.e. if it does not equal 2 or 5. | ||
| 78 | .Sh RETURN VALUES | 135 | .Sh RETURN VALUES |
| 79 | .Fn DH_generate_parameters_ex | 136 | .Fn DH_generate_parameters_ex |
| 80 | and | 137 | and |
| @@ -92,7 +149,7 @@ The error codes can be obtained by | |||
| 92 | .Xr ERR_get_error 3 . | 149 | .Xr ERR_get_error 3 . |
| 93 | .Sh SEE ALSO | 150 | .Sh SEE ALSO |
| 94 | .Xr dh 3 , | 151 | .Xr dh 3 , |
| 95 | .Xr DH_free 3 , | 152 | .Xr DH_new 3 , |
| 96 | .Xr ERR_get_error 3 , | 153 | .Xr ERR_get_error 3 , |
| 97 | .Xr RAND_bytes 3 | 154 | .Xr RAND_bytes 3 |
| 98 | .Sh HISTORY | 155 | .Sh HISTORY |
