summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2024-05-26 09:54:16 +0000
committertb <>2024-05-26 09:54:16 +0000
commit09f87a1e448f95c82821ad37370de4fcd8e018e4 (patch)
tree59c3a839e394cf67e803bcba3ad8e001884a8fc4
parentdeb355068ef89c1a5bb0bba5167616c533877617 (diff)
downloadopenbsd-09f87a1e448f95c82821ad37370de4fcd8e018e4.tar.gz
openbsd-09f87a1e448f95c82821ad37370de4fcd8e018e4.tar.bz2
openbsd-09f87a1e448f95c82821ad37370de4fcd8e018e4.zip
Remove documentation of optional md in one-step hashes
This functionality will be removed, so stop documenting it. Instead mention that another implementation still supports this.
-rw-r--r--src/lib/libcrypto/man/HMAC.317
-rw-r--r--src/lib/libcrypto/man/MD5.319
-rw-r--r--src/lib/libcrypto/man/RIPEMD160.317
-rw-r--r--src/lib/libcrypto/man/SHA1.322
4 files changed, 47 insertions, 28 deletions
diff --git a/src/lib/libcrypto/man/HMAC.3 b/src/lib/libcrypto/man/HMAC.3
index a0af270c4d..fa853bb4a1 100644
--- a/src/lib/libcrypto/man/HMAC.3
+++ b/src/lib/libcrypto/man/HMAC.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: HMAC.3,v 1.20 2022/01/25 17:55:39 tb Exp $ 1.\" $OpenBSD: HMAC.3,v 1.21 2024/05/26 09:54:16 tb Exp $
2.\" full merge up to: OpenSSL crypto/hmac a528d4f0 Oct 27 13:40:11 2015 -0400 2.\" full merge up to: OpenSSL crypto/hmac a528d4f0 Oct 27 13:40:11 2015 -0400
3.\" selective merge up to: OpenSSL man3/HMAC b3696a55 Sep 2 09:35:50 2017 -0400 3.\" selective merge up to: OpenSSL man3/HMAC b3696a55 Sep 2 09:35:50 2017 -0400
4.\" 4.\"
@@ -52,7 +52,7 @@
52.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 52.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
53.\" OF THE POSSIBILITY OF SUCH DAMAGE. 53.\" OF THE POSSIBILITY OF SUCH DAMAGE.
54.\" 54.\"
55.Dd $Mdocdate: January 25 2022 $ 55.Dd $Mdocdate: May 26 2024 $
56.Dt HMAC 3 56.Dt HMAC 3
57.Os 57.Os
58.Sh NAME 58.Sh NAME
@@ -160,11 +160,6 @@ which must have space for the output of the hash function, which is no
160more than 160more than
161.Dv EVP_MAX_MD_SIZE 161.Dv EVP_MAX_MD_SIZE
162bytes. 162bytes.
163If
164.Fa md
165is
166.Dv NULL ,
167the digest is placed in a static array, which is not thread safe.
168The size of the output is placed in 163The size of the output is placed in
169.Fa md_len , 164.Fa md_len ,
170unless it is 165unless it is
@@ -329,3 +324,11 @@ and
329.Fn HMAC_CTX_get_md 324.Fn HMAC_CTX_get_md
330first appeared in OpenSSL 1.1.0 and have been available since 325first appeared in OpenSSL 1.1.0 and have been available since
331.Ox 6.3 . 326.Ox 6.3 .
327.Sh CAVEATS
328Other implementations allow
329.Fa md
330in
331.Fn HMAC
332to be
333.Dv NULL
334and return a static array, which is not thread safe.
diff --git a/src/lib/libcrypto/man/MD5.3 b/src/lib/libcrypto/man/MD5.3
index 1e4a628591..01e715f406 100644
--- a/src/lib/libcrypto/man/MD5.3
+++ b/src/lib/libcrypto/man/MD5.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: MD5.3,v 1.8 2018/03/27 17:35:50 schwarze Exp $ 1.\" $OpenBSD: MD5.3,v 1.9 2024/05/26 09:54:16 tb Exp $
2.\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 2.\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400
3.\" 3.\"
4.\" This file was written by Ulf Moeller <ulf@openssl.org> and 4.\" This file was written by Ulf Moeller <ulf@openssl.org> and
@@ -49,7 +49,7 @@
49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
50.\" OF THE POSSIBILITY OF SUCH DAMAGE. 50.\" OF THE POSSIBILITY OF SUCH DAMAGE.
51.\" 51.\"
52.Dd $Mdocdate: March 27 2018 $ 52.Dd $Mdocdate: May 26 2024 $
53.Dt MD5 3 53.Dt MD5 3
54.Os 54.Os
55.Sh NAME 55.Sh NAME
@@ -123,11 +123,6 @@ and place it in
123which must have space for 123which must have space for
124.Dv MD4_DIGEST_LENGTH No == Dv MD5_DIGEST_LENGTH No == 16 124.Dv MD4_DIGEST_LENGTH No == Dv MD5_DIGEST_LENGTH No == 16
125bytes of output. 125bytes of output.
126If
127.Fa md
128is
129.Dv NULL ,
130the digest is placed in a static array.
131.Pp 126.Pp
132The following functions may be used if the message is not completely 127The following functions may be used if the message is not completely
133stored in memory: 128stored in memory:
@@ -194,3 +189,13 @@ and
194.Fn MD4_Final 189.Fn MD4_Final
195first appeared in OpenSSL 0.9.6 and have been available since 190first appeared in OpenSSL 0.9.6 and have been available since
196.Ox 2.9 . 191.Ox 2.9 .
192.Sh CAVEATS
193Other implementations allow
194.Fa md
195in
196.Fn MD4
197and
198.Fn MD5
199to be
200.Dv NULL
201and return a static array, which is not thread safe.
diff --git a/src/lib/libcrypto/man/RIPEMD160.3 b/src/lib/libcrypto/man/RIPEMD160.3
index 6fadb56cef..43c6694036 100644
--- a/src/lib/libcrypto/man/RIPEMD160.3
+++ b/src/lib/libcrypto/man/RIPEMD160.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: RIPEMD160.3,v 1.7 2019/08/25 15:17:19 schwarze Exp $ 1.\" $OpenBSD: RIPEMD160.3,v 1.8 2024/05/26 09:54:16 tb Exp $
2.\" full merge up to: OpenSSL 72a7a702 Feb 26 14:05:09 2019 +0000 2.\" full merge up to: OpenSSL 72a7a702 Feb 26 14:05:09 2019 +0000
3.\" 3.\"
4.\" This file was written by Ulf Moeller <ulf@openssl.org>. 4.\" This file was written by Ulf Moeller <ulf@openssl.org>.
@@ -48,7 +48,7 @@
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: August 25 2019 $ 51.Dd $Mdocdate: May 26 2024 $
52.Dt RIPEMD160 3 52.Dt RIPEMD160 3
53.Os 53.Os
54.Sh NAME 54.Sh NAME
@@ -93,11 +93,6 @@ and places it in
93which must have space for 93which must have space for
94.Dv RIPEMD160_DIGEST_LENGTH 94.Dv RIPEMD160_DIGEST_LENGTH
95== 20 bytes of output. 95== 20 bytes of output.
96If
97.Fa md
98is
99.Dv NULL ,
100the digest is placed in a static array.
101.Pp 96.Pp
102The following functions may be used if the message is not completely 97The following functions may be used if the message is not completely
103stored in memory: 98stored in memory:
@@ -149,3 +144,11 @@ and
149.Fn RIPEMD160_Final 144.Fn RIPEMD160_Final
150first appeared in SSLeay 0.9.0 and have been available since 145first appeared in SSLeay 0.9.0 and have been available since
151.Ox 2.4 . 146.Ox 2.4 .
147.Sh CAVEATS
148Other implementations allow
149.Fa md
150in
151.Fn RIPEMD160
152to be
153.Dv NULL
154and return a static array, which is not thread safe.
diff --git a/src/lib/libcrypto/man/SHA1.3 b/src/lib/libcrypto/man/SHA1.3
index f5061e56e6..722c10b145 100644
--- a/src/lib/libcrypto/man/SHA1.3
+++ b/src/lib/libcrypto/man/SHA1.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: SHA1.3,v 1.7 2018/03/27 17:35:50 schwarze Exp $ 1.\" $OpenBSD: SHA1.3,v 1.8 2024/05/26 09:54:16 tb Exp $
2.\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 2.\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400
3.\" 3.\"
4.\" This file was written by Ulf Moeller <ulf@openssl.org> and 4.\" This file was written by Ulf Moeller <ulf@openssl.org> and
@@ -49,7 +49,7 @@
49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
50.\" OF THE POSSIBILITY OF SUCH DAMAGE. 50.\" OF THE POSSIBILITY OF SUCH DAMAGE.
51.\" 51.\"
52.Dd $Mdocdate: March 27 2018 $ 52.Dd $Mdocdate: May 26 2024 $
53.Dt SHA1 3 53.Dt SHA1 3
54.Os 54.Os
55.Sh NAME 55.Sh NAME
@@ -195,11 +195,6 @@ and places it in
195which must have space for 195which must have space for
196.Dv SHA_DIGEST_LENGTH 196.Dv SHA_DIGEST_LENGTH
197== 20 bytes of output. 197== 20 bytes of output.
198If
199.Fa md
200is
201.Dv NULL ,
202the digest is placed in a static array, which is not thread safe.
203.Pp 198.Pp
204The following functions may be used if the message is not completely 199The following functions may be used if the message is not completely
205stored in memory: 200stored in memory:
@@ -274,3 +269,16 @@ first appeared in SSLeay 0.5.1 and have been available since
274The other functions first appeared in OpenSSL 0.9.8 269The other functions first appeared in OpenSSL 0.9.8
275and have been available since 270and have been available since
276.Ox 4.5 . 271.Ox 4.5 .
272.Sh CAVEATS
273Other implementations allow
274.Fa md
275in
276.Fn SHA1 ,
277.Fn SHA224 ,
278.Fn SHA256 ,
279.Fn SHA384 ,
280and
281.Fn SHA512
282to be
283.Dv NULL
284and return a static array, which is not thread safe.