summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2022-01-15 09:08:51 +0000
committertb <>2022-01-15 09:08:51 +0000
commit9f28dd6ab4280aa8fe3befa3a517f4babcc9fc19 (patch)
tree1c129c9eb0a5a13523766828dda95f3e7f0fd375 /src
parentcbab7089b7297d8aeb708a99bc2b6052d2e5a2ab (diff)
downloadopenbsd-9f28dd6ab4280aa8fe3befa3a517f4babcc9fc19.tar.gz
openbsd-9f28dd6ab4280aa8fe3befa3a517f4babcc9fc19.tar.bz2
openbsd-9f28dd6ab4280aa8fe3befa3a517f4babcc9fc19.zip
Stop documenting clone digests.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/EVP_DigestInit.330
-rw-r--r--src/lib/libcrypto/man/EVP_DigestSignInit.312
-rw-r--r--src/lib/libcrypto/man/EVP_DigestVerifyInit.312
3 files changed, 7 insertions, 47 deletions
diff --git a/src/lib/libcrypto/man/EVP_DigestInit.3 b/src/lib/libcrypto/man/EVP_DigestInit.3
index 85800722d5..9b2ee4e09f 100644
--- a/src/lib/libcrypto/man/EVP_DigestInit.3
+++ b/src/lib/libcrypto/man/EVP_DigestInit.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: EVP_DigestInit.3,v 1.21 2021/09/10 18:58:43 millert Exp $ 1.\" $OpenBSD: EVP_DigestInit.3,v 1.22 2022/01/15 09:08:51 tb Exp $
2.\" full merge up to: OpenSSL 7f572e95 Dec 2 13:57:04 2015 +0000 2.\" full merge up to: OpenSSL 7f572e95 Dec 2 13:57:04 2015 +0000
3.\" selective merge up to: OpenSSL a95d7574 Jul 2 12:16:38 2017 -0400 3.\" selective merge up to: OpenSSL a95d7574 Jul 2 12:16:38 2017 -0400
4.\" 4.\"
@@ -68,7 +68,7 @@
68.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 68.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
69.\" OF THE POSSIBILITY OF SUCH DAMAGE. 69.\" OF THE POSSIBILITY OF SUCH DAMAGE.
70.\" 70.\"
71.Dd $Mdocdate: September 10 2021 $ 71.Dd $Mdocdate: January 15 2022 $
72.Dt EVP_DIGESTINIT 3 72.Dt EVP_DIGESTINIT 3
73.Os 73.Os
74.Sh NAME 74.Sh NAME
@@ -105,8 +105,6 @@
105.Nm EVP_sha256 , 105.Nm EVP_sha256 ,
106.Nm EVP_sha384 , 106.Nm EVP_sha384 ,
107.Nm EVP_sha512 , 107.Nm EVP_sha512 ,
108.Nm EVP_dss ,
109.Nm EVP_dss1 ,
110.Nm EVP_ripemd160 , 108.Nm EVP_ripemd160 ,
111.Nm EVP_get_digestbyname , 109.Nm EVP_get_digestbyname ,
112.Nm EVP_get_digestbynid , 110.Nm EVP_get_digestbynid ,
@@ -243,10 +241,6 @@
243.Ft const EVP_MD * 241.Ft const EVP_MD *
244.Fn EVP_sha512 void 242.Fn EVP_sha512 void
245.Ft const EVP_MD * 243.Ft const EVP_MD *
246.Fn EVP_dss void
247.Ft const EVP_MD *
248.Fn EVP_dss1 void
249.Ft const EVP_MD *
250.Fn EVP_ripemd160 void 244.Fn EVP_ripemd160 void
251.Ft const EVP_MD * 245.Ft const EVP_MD *
252.Fo EVP_get_digestbyname 246.Fo EVP_get_digestbyname
@@ -484,16 +478,6 @@ returns an
484.Vt EVP_MD 478.Vt EVP_MD
485structure that provides concatenated MD5 and SHA1 message digests. 479structure that provides concatenated MD5 and SHA1 message digests.
486.Pp 480.Pp
487.Fn EVP_dss
488and
489.Fn EVP_dss1
490return
491.Vt EVP_MD
492structures for SHA1 digest algorithms but using DSS (DSA) for the
493signature algorithm.
494Note: there is no need to use these pseudo-digests in OpenSSL 1.0.0 and
495later; they are however retained for compatibility.
496.Pp
497.Fn EVP_md_null 481.Fn EVP_md_null
498is a "null" message digest that does nothing: 482is a "null" message digest that does nothing:
499i.e. the hash it returns is of zero length. 483i.e. the hash it returns is of zero length.
@@ -604,8 +588,6 @@ is
604.Fn EVP_md5 , 588.Fn EVP_md5 ,
605.Fn EVP_md5_sha1 , 589.Fn EVP_md5_sha1 ,
606.Fn EVP_sha1 , 590.Fn EVP_sha1 ,
607.Fn EVP_dss ,
608.Fn EVP_dss1 ,
609and 591and
610.Fn EVP_ripemd160 592.Fn EVP_ripemd160
611return pointers to the corresponding 593return pointers to the corresponding
@@ -694,10 +676,6 @@ main(int argc, char *argv[])
694and 676and
695.Fn EVP_sha1 677.Fn EVP_sha1
696first appeared in SSLeay 0.5.1. 678first appeared in SSLeay 0.5.1.
697.Fn EVP_dss
698and
699.Fn EVP_dss1
700first appeared in SSLeay 0.6.0.
701.Fn EVP_MD_size 679.Fn EVP_MD_size
702first appeared in SSLeay 0.6.6. 680first appeared in SSLeay 0.6.6.
703.Fn EVP_MD_CTX_size , 681.Fn EVP_MD_CTX_size ,
@@ -767,6 +745,4 @@ first appeared in OpenSSL 1.1.0 and have been available since
767The link between digests and signing algorithms was fixed in OpenSSL 1.0 745The link between digests and signing algorithms was fixed in OpenSSL 1.0
768and later, so now 746and later, so now
769.Fn EVP_sha1 747.Fn EVP_sha1
770can be used with RSA and DSA; there is no need to use 748can be used with RSA and DSA.
771.Fn EVP_dss1
772any more.
diff --git a/src/lib/libcrypto/man/EVP_DigestSignInit.3 b/src/lib/libcrypto/man/EVP_DigestSignInit.3
index 57db4b31d3..de6e57c2cd 100644
--- a/src/lib/libcrypto/man/EVP_DigestSignInit.3
+++ b/src/lib/libcrypto/man/EVP_DigestSignInit.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: EVP_DigestSignInit.3,v 1.11 2021/05/20 14:41:47 tb Exp $ 1.\" $OpenBSD: EVP_DigestSignInit.3,v 1.12 2022/01/15 09:08:51 tb Exp $
2.\" OpenSSL 9b86974e Aug 17 15:21:33 2015 -0400 2.\" OpenSSL 9b86974e Aug 17 15:21:33 2015 -0400
3.\" 3.\"
4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>. 4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>.
@@ -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: May 20 2021 $ 52.Dd $Mdocdate: January 15 2022 $
53.Dt EVP_DIGESTSIGNINIT 3 53.Dt EVP_DIGESTSIGNINIT 3
54.Os 54.Os
55.Sh NAME 55.Sh NAME
@@ -189,14 +189,6 @@ used in preference to the low-level interfaces.
189This is because the code then becomes transparent to the algorithm used 189This is because the code then becomes transparent to the algorithm used
190and much more flexible. 190and much more flexible.
191.Pp 191.Pp
192In previous versions of OpenSSL, there was a link between message digest
193types and public key algorithms.
194This meant that "clone" digests such as
195.Xr EVP_dss1 3
196needed to be used to sign using SHA1 and DSA.
197This is no longer necessary and the use of clone digest is now
198discouraged.
199.Pp
200The call to 192The call to
201.Fn EVP_DigestSignFinal 193.Fn EVP_DigestSignFinal
202internally finalizes a copy of the digest context. 194internally finalizes a copy of the digest context.
diff --git a/src/lib/libcrypto/man/EVP_DigestVerifyInit.3 b/src/lib/libcrypto/man/EVP_DigestVerifyInit.3
index 0b3fa13921..0eb3143467 100644
--- a/src/lib/libcrypto/man/EVP_DigestVerifyInit.3
+++ b/src/lib/libcrypto/man/EVP_DigestVerifyInit.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: EVP_DigestVerifyInit.3,v 1.13 2021/05/20 14:41:47 tb Exp $ 1.\" $OpenBSD: EVP_DigestVerifyInit.3,v 1.14 2022/01/15 09:08:51 tb Exp $
2.\" OpenSSL fb552ac6 Sep 30 23:43:01 2009 +0000 2.\" OpenSSL fb552ac6 Sep 30 23:43:01 2009 +0000
3.\" 3.\"
4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>. 4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>.
@@ -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: May 20 2021 $ 52.Dd $Mdocdate: January 15 2022 $
53.Dt EVP_DIGESTVERIFYINIT 3 53.Dt EVP_DIGESTVERIFYINIT 3
54.Os 54.Os
55.Sh NAME 55.Sh NAME
@@ -170,14 +170,6 @@ used in preference to the low level interfaces.
170This is because the code then becomes transparent to the algorithm used 170This is because the code then becomes transparent to the algorithm used
171and much more flexible. 171and much more flexible.
172.Pp 172.Pp
173In previous versions of OpenSSL, there was a link between message digest
174types and public key algorithms.
175This meant that "clone" digests such as
176.Xr EVP_dss1 3
177needed to be used to sign using SHA1 and DSA.
178This is no longer necessary and the use of clone digest is now
179discouraged.
180.Pp
181The call to 173The call to
182.Fn EVP_DigestVerifyFinal 174.Fn EVP_DigestVerifyFinal
183internally finalizes a copy of the digest context. 175internally finalizes a copy of the digest context.