diff options
author | schwarze <> | 2021-12-19 16:18:34 +0000 |
---|---|---|
committer | schwarze <> | 2021-12-19 16:18:34 +0000 |
commit | 289a7e9ab1fcdb90063348d01f3b19009239985d (patch) | |
tree | 965a2b34da317302b4f3eb3fc77502e98b891c5a | |
parent | 1c0466ccc4ccf9f6a06136eb400e7d0f67cfc6f8 (diff) | |
download | openbsd-289a7e9ab1fcdb90063348d01f3b19009239985d.tar.gz openbsd-289a7e9ab1fcdb90063348d01f3b19009239985d.tar.bz2 openbsd-289a7e9ab1fcdb90063348d01f3b19009239985d.zip |
document BN_zero_ex(3)
-rw-r--r-- | src/lib/libcrypto/man/BN_zero.3 | 44 |
1 files changed, 38 insertions, 6 deletions
diff --git a/src/lib/libcrypto/man/BN_zero.3 b/src/lib/libcrypto/man/BN_zero.3 index 1e1d2fcf8d..aa3e8a0682 100644 --- a/src/lib/libcrypto/man/BN_zero.3 +++ b/src/lib/libcrypto/man/BN_zero.3 | |||
@@ -1,9 +1,26 @@ | |||
1 | .\" $OpenBSD: BN_zero.3,v 1.10 2021/11/30 18:34:35 tb Exp $ | 1 | .\" $OpenBSD: BN_zero.3,v 1.11 2021/12/19 16:18:34 schwarze Exp $ |
2 | .\" full merge up to: OpenSSL a528d4f0 Oct 27 13:40:11 2015 -0400 | 2 | .\" full merge up to: OpenSSL a528d4f0 Oct 27 13:40:11 2015 -0400 |
3 | .\" selective merge up to: OpenSSL b713c4ff Jan 22 14:41:09 2018 -0500 | 3 | .\" selective merge up to: OpenSSL b713c4ff Jan 22 14:41:09 2018 -0500 |
4 | .\" | 4 | .\" |
5 | .\" This file was written by Ulf Moeller <ulf@openssl.org>. | 5 | .\" This file is a derived work. |
6 | .\" Copyright (c) 2000, 2001, 2002, 2018 The OpenSSL Project. | 6 | .\" The changes are covered by the following Copyright and license: |
7 | .\" | ||
8 | .\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org> | ||
9 | .\" | ||
10 | .\" Permission to use, copy, modify, and distribute this software for any | ||
11 | .\" purpose with or without fee is hereby granted, provided that the above | ||
12 | .\" copyright notice and this permission notice appear in all copies. | ||
13 | .\" | ||
14 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
15 | .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
16 | .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
17 | .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
18 | .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
19 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
20 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
21 | .\" | ||
22 | .\" The original file was written by Ulf Moeller <ulf@openssl.org>. | ||
23 | .\" Copyright (c) 2000, 2001, 2018 The OpenSSL Project. | ||
7 | .\" All rights reserved. | 24 | .\" All rights reserved. |
8 | .\" | 25 | .\" |
9 | .\" Redistribution and use in source and binary forms, with or without | 26 | .\" Redistribution and use in source and binary forms, with or without |
@@ -50,10 +67,11 @@ | |||
50 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 67 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
51 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 68 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
52 | .\" | 69 | .\" |
53 | .Dd $Mdocdate: November 30 2021 $ | 70 | .Dd $Mdocdate: December 19 2021 $ |
54 | .Dt BN_ZERO 3 | 71 | .Dt BN_ZERO 3 |
55 | .Os | 72 | .Os |
56 | .Sh NAME | 73 | .Sh NAME |
74 | .Nm BN_zero_ex , | ||
57 | .Nm BN_zero , | 75 | .Nm BN_zero , |
58 | .Nm BN_one , | 76 | .Nm BN_one , |
59 | .Nm BN_value_one , | 77 | .Nm BN_value_one , |
@@ -62,6 +80,10 @@ | |||
62 | .Nd BIGNUM assignment operations | 80 | .Nd BIGNUM assignment operations |
63 | .Sh SYNOPSIS | 81 | .Sh SYNOPSIS |
64 | .In openssl/bn.h | 82 | .In openssl/bn.h |
83 | .Ft void | ||
84 | .Fo BN_zero_ex | ||
85 | .Fa "BIGNUM *a" | ||
86 | .Fc | ||
65 | .Ft int | 87 | .Ft int |
66 | .Fo BN_zero | 88 | .Fo BN_zero |
67 | .Fa "BIGNUM *a" | 89 | .Fa "BIGNUM *a" |
@@ -88,7 +110,7 @@ | |||
88 | is a macro that expands to an unsigned integral type optimized | 110 | is a macro that expands to an unsigned integral type optimized |
89 | for the most efficient implementation on the local platform. | 111 | for the most efficient implementation on the local platform. |
90 | .Pp | 112 | .Pp |
91 | .Fn BN_zero , | 113 | .Fn BN_zero_ex , |
92 | .Fn BN_one , | 114 | .Fn BN_one , |
93 | and | 115 | and |
94 | .Fn BN_set_word | 116 | .Fn BN_set_word |
@@ -98,6 +120,12 @@ to the values 0, 1 and | |||
98 | .Fa w | 120 | .Fa w |
99 | respectively. | 121 | respectively. |
100 | .Fn BN_zero | 122 | .Fn BN_zero |
123 | is a deprecated version of | ||
124 | .Fn BN_zero_ex | ||
125 | that may attempt to allocate memory; consequently, and in contrast to | ||
126 | .Fn BN_zero_ex , | ||
127 | it may fail. | ||
128 | .Fn BN_zero | ||
101 | and | 129 | and |
102 | .Fn BN_one | 130 | .Fn BN_one |
103 | are macros. | 131 | are macros. |
@@ -137,8 +165,12 @@ and | |||
137 | first appeared in SSLeay 0.5.1. | 165 | first appeared in SSLeay 0.5.1. |
138 | .Fn BN_get_word | 166 | .Fn BN_get_word |
139 | first appeared in SSLeay 0.6.0. | 167 | first appeared in SSLeay 0.6.0. |
140 | All these functions have been available since | 168 | These functions have been available since |
141 | .Ox 2.4 . | 169 | .Ox 2.4 . |
170 | .Pp | ||
171 | .Fn BN_zero_ex | ||
172 | first appeared in OpenSSL 0.9.8 and has been available since | ||
173 | .Ox 4.5 . | ||
142 | .Sh BUGS | 174 | .Sh BUGS |
143 | Someone might change the constant. | 175 | Someone might change the constant. |
144 | .Pp | 176 | .Pp |