summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/man/EVP_PKEY_derive.39
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/libcrypto/man/EVP_PKEY_derive.3 b/src/lib/libcrypto/man/EVP_PKEY_derive.3
index 8940572d1d..398540a5bf 100644
--- a/src/lib/libcrypto/man/EVP_PKEY_derive.3
+++ b/src/lib/libcrypto/man/EVP_PKEY_derive.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: EVP_PKEY_derive.3,v 1.10 2024/03/05 19:21:31 tb Exp $ 1.\" $OpenBSD: EVP_PKEY_derive.3,v 1.11 2024/07/21 08:25:33 tb Exp $
2.\" full merge up to: OpenSSL 48e5119a Jan 19 10:49:22 2018 +0100 2.\" full merge up to: OpenSSL 48e5119a Jan 19 10:49:22 2018 +0100
3.\" 3.\"
4.\" This file is a derived work. 4.\" This file is a derived work.
@@ -66,7 +66,7 @@
66.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 66.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
67.\" OF THE POSSIBILITY OF SUCH DAMAGE. 67.\" OF THE POSSIBILITY OF SUCH DAMAGE.
68.\" 68.\"
69.Dd $Mdocdate: March 5 2024 $ 69.Dd $Mdocdate: July 21 2024 $
70.Dt EVP_PKEY_DERIVE 3 70.Dt EVP_PKEY_DERIVE 3
71.Os 71.Os
72.Sh NAME 72.Sh NAME
@@ -209,13 +209,12 @@ Derive shared secret (for example DH or EC keys):
209#include <openssl/rsa.h> 209#include <openssl/rsa.h>
210 210
211EVP_PKEY_CTX *ctx; 211EVP_PKEY_CTX *ctx;
212ENGINE *eng;
213unsigned char *skey; 212unsigned char *skey;
214size_t skeylen; 213size_t skeylen;
215EVP_PKEY *pkey, *peerkey; 214EVP_PKEY *pkey, *peerkey;
216 215
217/* Assumes that pkey, eng, and peerkey have already been set up. */ 216/* Assumes that pkey and peerkey have already been set up. */
218ctx = EVP_PKEY_CTX_new(pkey, eng); 217ctx = EVP_PKEY_CTX_new(pkey, NULL);
219if (!ctx) 218if (!ctx)
220 /* Error occurred */ 219 /* Error occurred */
221if (EVP_PKEY_derive_init(ctx) <= 0) 220if (EVP_PKEY_derive_init(ctx) <= 0)