summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/EVP_DigestVerifyInit.3
diff options
context:
space:
mode:
authorschwarze <>2024-11-08 22:23:35 +0000
committerschwarze <>2024-11-08 22:23:35 +0000
commitd0c0ceacf41c5d7d278724824d2b6fb5730c2201 (patch)
tree0d3c20fc4d228dfe84edecb7cdbbb3accc5b85f5 /src/lib/libcrypto/man/EVP_DigestVerifyInit.3
parent7ae287b389f7b4b66ed89fa379b4d295cdf76231 (diff)
downloadopenbsd-d0c0ceacf41c5d7d278724824d2b6fb5730c2201.tar.gz
openbsd-d0c0ceacf41c5d7d278724824d2b6fb5730c2201.tar.bz2
openbsd-d0c0ceacf41c5d7d278724824d2b6fb5730c2201.zip
Weed out the last remaining refences to the obsolete
function EVP_MD_CTX_init(3) and talk about EVP_MD_CTX_new(3) instead. This is similar in spirit to OpenSSL commit 25191fff (Dec 1, 2015), but i'm also mentioning EVP_MD_CTX_reset(3), slightly reordering some sentences in a more systematic way, and improving some related wordings to be more precise and read better.
Diffstat (limited to 'src/lib/libcrypto/man/EVP_DigestVerifyInit.3')
-rw-r--r--src/lib/libcrypto/man/EVP_DigestVerifyInit.355
1 files changed, 29 insertions, 26 deletions
diff --git a/src/lib/libcrypto/man/EVP_DigestVerifyInit.3 b/src/lib/libcrypto/man/EVP_DigestVerifyInit.3
index b3286bf201..7ecd7e94e3 100644
--- a/src/lib/libcrypto/man/EVP_DigestVerifyInit.3
+++ b/src/lib/libcrypto/man/EVP_DigestVerifyInit.3
@@ -1,8 +1,9 @@
1.\" $OpenBSD: EVP_DigestVerifyInit.3,v 1.15 2024/07/21 08:36:43 tb Exp $ 1.\" $OpenBSD: EVP_DigestVerifyInit.3,v 1.16 2024/11/08 22:23:35 schwarze Exp $
2.\" OpenSSL fb552ac6 Sep 30 23:43:01 2009 +0000 2.\" full merge up to OpenSSL f097e875 Aug 23 11:37:22 2018 +0100
3.\" selective merge up to 24a535ea Sep 22 13:14:20 2020 +0100
3.\" 4.\"
4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>. 5.\" This file was written by Dr. Stephen Henson <steve@openssl.org>.
5.\" Copyright (c) 2006, 2009, 2014, 2015, 2016 The OpenSSL Project. 6.\" Copyright (c) 2006, 2009, 2014, 2015, 2016, 2017 The OpenSSL Project.
6.\" All rights reserved. 7.\" All rights reserved.
7.\" 8.\"
8.\" Redistribution and use in source and binary forms, with or without 9.\" Redistribution and use in source and binary forms, with or without
@@ -49,7 +50,7 @@
49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 50.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
50.\" OF THE POSSIBILITY OF SUCH DAMAGE. 51.\" OF THE POSSIBILITY OF SUCH DAMAGE.
51.\" 52.\"
52.Dd $Mdocdate: July 21 2024 $ 53.Dd $Mdocdate: November 8 2024 $
53.Dt EVP_DIGESTVERIFYINIT 3 54.Dt EVP_DIGESTVERIFYINIT 3
54.Os 55.Os
55.Sh NAME 56.Sh NAME
@@ -93,39 +94,41 @@ The EVP signature routines are a high-level interface to digital
93signatures. 94signatures.
94.Pp 95.Pp
95.Fn EVP_DigestVerifyInit 96.Fn EVP_DigestVerifyInit
96sets up verification context 97sets up the verification context
97.Fa ctx 98.Fa ctx
98to use digest 99to use the digest
99.Fa type 100.Fa type
100and public key 101and the public key
101.Fa pkey . 102.Fa pkey .
103Before calling this function, obtain
102.Fa ctx 104.Fa ctx
103must be initialized with 105from
104.Xr EVP_MD_CTX_init 3 106.Xr EVP_MD_CTX_new 3
105before calling this function. 107or call
108.Xr EVP_MD_CTX_reset 3
109on it.
110The
111.Fa engine
112argument is always ignored and passing
113.Dv NULL
114is recommended.
115.Pp
106If 116If
107.Fa pctx 117.Fa pctx
108is not 118is not
109.Dv NULL , 119.Dv NULL ,
110the 120any pointer passed in as
121.Pf * Fa pctx
122is ignored and overwritten by an internal pointer to the
111.Vt EVP_PKEY_CTX 123.Vt EVP_PKEY_CTX
112of the verification operation will be written to 124used by the verification operation:
113.Pf * Fa pctx : 125this can be used to set alternative signing options.
114this can be used to set alternative verification options. 126The returned
115Any existing value in
116.Pf * .Fa pctx
117is overwritten.
118The
119.Vt EVP_PKEY_CTX 127.Vt EVP_PKEY_CTX
120value returned must not be freed directly by the application. 128must not be freed by the application.
121It will be freed automatically when the 129It is freed automatically when the
122.Vt EVP_MD_CTX 130.Vt EVP_MD_CTX
123is freed. 131is freed.
124The
125.Fa ENGINE *engine
126argument is always ignored and passing
127.Dv NULL
128is recommended.
129.Pp 132.Pp
130.Fn EVP_DigestVerifyUpdate 133.Fn EVP_DigestVerifyUpdate
131hashes 134hashes
@@ -168,7 +171,7 @@ and
168.\" it is the only way to verify data. 171.\" it is the only way to verify data.
169.Pp 172.Pp
170The EVP interface to digital signatures should almost always be 173The EVP interface to digital signatures should almost always be
171used in preference to the low level interfaces. 174used in preference to the low-level interfaces.
172This is because the code then becomes transparent to the algorithm used 175This is because the code then becomes transparent to the algorithm used
173and much more flexible. 176and much more flexible.
174.Pp 177.Pp