EVP_KEYEXCH-X25519, EVP_KEYEXCH-X448 β X25519 and X448 Key Exchange algorithm support
| Use Case | Command | Description |
|---|---|---|
| π Generate X25519 key pair | openssl genpkey -algorithm X25519 -out priv.pem |
Create a private key for X25519 key exchange |
| π Generate X448 key pair | openssl genpkey -algorithm X448 -out priv.pem |
Create a private key for X448 key exchange |
| π€ Derive shared secret (X25519) | EVP_PKEY_derive_init() + EVP_PKEY_derive_set_peer() + EVP_PKEY_derive() |
Compute shared secret using X25519 keys |
| π€ Derive shared secret (X448) | Same API with X448 keys | Compute shared secret using X448 keys |
| π§© Set padding parameter | OSSL_EXCHANGE_PARAM_PAD |
Control padding of the shared secret output |
Key exchange support for the X25519 and X448 key types.
π pad (OSSL_EXCHANGE_PARAM_PAD) <unsigned integer> β See βCommon Key Exchange parametersβ in provider-keyexch(7).
Keys for the host and peer can be generated as shown in βExamplesβ in EVP_PKEY-X25519(7).
The code to generate a shared secret is identical to βExamplesβ in EVP_KEYEXCH-DH(7).
π EVP_PKEY-FFC(7), EVP_PKEY-DH(7), EVP_PKEY(3), provider-keyexch(7), provider-keymgmt(7), OSSL_PROVIDER-default(7), OSSL_PROVIDER-FIPS(7)
Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the βLicenseβ). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at https://www.openssl.org/source/license.html.
3.0.2β2026-06-02βEVP_KEYEXCH-X25519(7SSL)
Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-04 11:50 @216.73.216.183
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format