diff options
Diffstat (limited to 'src/lib/libcrypto/man')
| -rw-r--r-- | src/lib/libcrypto/man/DSA_get0_pqg.3 | 80 |
1 files changed, 77 insertions, 3 deletions
diff --git a/src/lib/libcrypto/man/DSA_get0_pqg.3 b/src/lib/libcrypto/man/DSA_get0_pqg.3 index e2cf7405eb..2de976d306 100644 --- a/src/lib/libcrypto/man/DSA_get0_pqg.3 +++ b/src/lib/libcrypto/man/DSA_get0_pqg.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: DSA_get0_pqg.3,v 1.5 2022/07/13 21:51:35 schwarze Exp $ | 1 | .\" $OpenBSD: DSA_get0_pqg.3,v 1.6 2023/03/06 13:18:38 tb Exp $ |
| 2 | .\" full merge up to: OpenSSL e90fc053 Jul 15 09:39:45 2017 -0400 | 2 | .\" full merge up to: OpenSSL e90fc053 Jul 15 09:39:45 2017 -0400 |
| 3 | .\" | 3 | .\" |
| 4 | .\" This file was written by Matt Caswell <matt@openssl.org>. | 4 | .\" This file was written by Matt Caswell <matt@openssl.org>. |
| @@ -48,13 +48,18 @@ | |||
| 48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| 49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
| 50 | .\" | 50 | .\" |
| 51 | .Dd $Mdocdate: July 13 2022 $ | 51 | .Dd $Mdocdate: March 6 2023 $ |
| 52 | .Dt DSA_GET0_PQG 3 | 52 | .Dt DSA_GET0_PQG 3 |
| 53 | .Os | 53 | .Os |
| 54 | .Sh NAME | 54 | .Sh NAME |
| 55 | .Nm DSA_get0_pqg , | 55 | .Nm DSA_get0_pqg , |
| 56 | .Nm DSA_get0_p , | ||
| 57 | .Nm DSA_get0_q , | ||
| 58 | .Nm DSA_get0_g , | ||
| 56 | .Nm DSA_set0_pqg , | 59 | .Nm DSA_set0_pqg , |
| 57 | .Nm DSA_get0_key , | 60 | .Nm DSA_get0_key , |
| 61 | .Nm DSA_get0_pub_key , | ||
| 62 | .Nm DSA_get0_priv_key , | ||
| 58 | .Nm DSA_set0_key , | 63 | .Nm DSA_set0_key , |
| 59 | .Nm DSA_clear_flags , | 64 | .Nm DSA_clear_flags , |
| 60 | .Nm DSA_test_flags , | 65 | .Nm DSA_test_flags , |
| @@ -70,6 +75,18 @@ | |||
| 70 | .Fa "const BIGNUM **q" | 75 | .Fa "const BIGNUM **q" |
| 71 | .Fa "const BIGNUM **g" | 76 | .Fa "const BIGNUM **g" |
| 72 | .Fc | 77 | .Fc |
| 78 | .Ft "const BIGNUM *" | ||
| 79 | .Fo DSA_get0_p | ||
| 80 | .Fa "const DSA *d" | ||
| 81 | .Fc | ||
| 82 | .Ft "const BIGNUM *" | ||
| 83 | .Fo DSA_get0_q | ||
| 84 | .Fa "const DSA *d" | ||
| 85 | .Fc | ||
| 86 | .Ft "const BIGNUM *" | ||
| 87 | .Fo DSA_get0_g | ||
| 88 | .Fa "const DSA *d" | ||
| 89 | .Fc | ||
| 73 | .Ft int | 90 | .Ft int |
| 74 | .Fo DSA_set0_pqg | 91 | .Fo DSA_set0_pqg |
| 75 | .Fa "DSA *d" | 92 | .Fa "DSA *d" |
| @@ -83,6 +100,14 @@ | |||
| 83 | .Fa "const BIGNUM **pub_key" | 100 | .Fa "const BIGNUM **pub_key" |
| 84 | .Fa "const BIGNUM **priv_key" | 101 | .Fa "const BIGNUM **priv_key" |
| 85 | .Fc | 102 | .Fc |
| 103 | .Ft "const BIGNUM *" | ||
| 104 | .Fo DSA_get0_pub_key | ||
| 105 | .Fa "const DSA *d" | ||
| 106 | .Fc | ||
| 107 | .Ft "const BIGNUM *" | ||
| 108 | .Fo DSA_get0_priv_key | ||
| 109 | .Fa "const DSA *d" | ||
| 110 | .Fc | ||
| 86 | .Ft int | 111 | .Ft int |
| 87 | .Fo DSA_set0_key | 112 | .Fo DSA_set0_key |
| 88 | .Fa "DSA *d" | 113 | .Fa "DSA *d" |
| @@ -194,6 +219,25 @@ If needed, duplicate the received values using | |||
| 194 | .Xr BN_dup 3 | 219 | .Xr BN_dup 3 |
| 195 | and pass the duplicates. | 220 | and pass the duplicates. |
| 196 | .Pp | 221 | .Pp |
| 222 | Any of the values | ||
| 223 | .Fa p , | ||
| 224 | .Fa q , | ||
| 225 | .Fa g , | ||
| 226 | .Fa priv_key , | ||
| 227 | and | ||
| 228 | .Fa pub_key | ||
| 229 | can also be retrieved separately by the corresponding functions | ||
| 230 | .Fn DSA_get0_p , | ||
| 231 | .Fn DSA_get0_q , | ||
| 232 | .Fn DSA_get0_g , | ||
| 233 | .Fn DSA_get0_priv_key , | ||
| 234 | and | ||
| 235 | .Fn DSA_get0_pub_key , | ||
| 236 | respectively. | ||
| 237 | The pointers are owned by the | ||
| 238 | .Vt DSA | ||
| 239 | object. | ||
| 240 | .Pp | ||
| 197 | .Fn DSA_clear_flags | 241 | .Fn DSA_clear_flags |
| 198 | clears the specified | 242 | clears the specified |
| 199 | .Fa flags | 243 | .Fa flags |
| @@ -213,6 +257,17 @@ any flags already set remain set. | |||
| 213 | For all three functions, multiple flags can be passed in one call, | 257 | For all three functions, multiple flags can be passed in one call, |
| 214 | OR'ed together bitwise. | 258 | OR'ed together bitwise. |
| 215 | .Sh RETURN VALUES | 259 | .Sh RETURN VALUES |
| 260 | .Fn DSA_get0_p , | ||
| 261 | .Fn DSA_get0_q , | ||
| 262 | .Fn DSA_get0_g , | ||
| 263 | .Fn DSA_get0_pub_key , | ||
| 264 | and | ||
| 265 | .Fn DSA_get0_priv_key | ||
| 266 | return a pointer owned by the | ||
| 267 | .Vt DSA | ||
| 268 | object if the corresponding value has been set, | ||
| 269 | otherwise they return | ||
| 270 | .Dv NULL . | ||
| 216 | .Fn DSA_set0_pqg | 271 | .Fn DSA_set0_pqg |
| 217 | and | 272 | and |
| 218 | .Fn DSA_set0_key | 273 | .Fn DSA_set0_key |
| @@ -248,6 +303,25 @@ if no engine was set for this object. | |||
| 248 | .Xr DSA_sign 3 , | 303 | .Xr DSA_sign 3 , |
| 249 | .Xr DSA_size 3 | 304 | .Xr DSA_size 3 |
| 250 | .Sh HISTORY | 305 | .Sh HISTORY |
| 251 | These functions first appeared in OpenSSL 1.1.0 | 306 | .Fn DSA_get0_pqg , |
| 307 | .Fn DSA_set0_pqg , | ||
| 308 | .Fn DSA_get0_key , | ||
| 309 | .Fn DSA_set0_key , | ||
| 310 | .Fn DSA_clear_flags , | ||
| 311 | .Fn DSA_test_flags , | ||
| 312 | .Fn DSA_set_flags , | ||
| 313 | and | ||
| 314 | .Fn DSA_get0_engine | ||
| 315 | first appeared in OpenSSL 1.1.0 | ||
| 252 | and have been available since | 316 | and have been available since |
| 253 | .Ox 6.3 . | 317 | .Ox 6.3 . |
| 318 | .Pp | ||
| 319 | .Fn DSA_get0_p , | ||
| 320 | .Fn DSA_get0_q , | ||
| 321 | .Fn DSA_get0_g , | ||
| 322 | .Fn DSA_get0_pub_key , | ||
| 323 | and | ||
| 324 | .Fn DSA_get0_priv_key | ||
| 325 | first appeared in OpenSSL 1.1.1 | ||
| 326 | and have been available since | ||
| 327 | .Ox 7.1 . | ||
