EVP_KEYEXCH-X25519(7ossl)

πŸ“¦
version 15.1 Β· 3 versions
, in freebsd 15.1

πŸ’– EVP_KEYEXCH-X25519 πŸ’–

okay bestie so this is the EVP_KEYEXCH-X25519(7ossl) page β€” yes, section 7ossl, the OpenSSL manual, we're fancy like that ✨. It covers both EVP_KEYEXCH-X25519 and EVP_KEYEXCH-X448, because they're literally twinsies. Let's get into it 🫢


✨ NAME ✨

EVP_KEYEXCH-X25519, EVP_KEYEXCH-X448 β€” it's giving X25519 and X448 Key Exchange algorithm support. that's the whole vibe πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so basically: this is the key exchange support for the X25519 and X448 key types. that's it, that's the tea πŸ“

πŸ”‘ Key exchange parameters

  • "pad" (OSSL_EXCHANGE_PARAM_PAD) <unsigned integer> β€” the padding parameter, typed as an unsigned integer, no cap πŸ“
  • "fips-indicator" (OSSL_EXCHANGE_PARAM_FIPS_APPROVED_INDICATOR) <integer> β€” the FIPS approval indicator, and listen πŸ‘€: X25519 and X448 are not FIPS approved in FIPS 140-3. so this getter will return 0. that's just how it is, sorry babe 😭
also go read "Common Key Exchange parameters" in provider-keyexch(7) for the full lore πŸ“–

🌈 EXAMPLES 🌈

Keys for the host and peer can be generated as shown in "Examples" in EVP_PKEY-X25519(7). cute, right? πŸŽ€

And the code to generate a shared secret is identical to "Examples" in EVP_KEYEXCH-DH(7). literally copy-paste energy, we love efficiency πŸ‘‘


πŸ‘€ SEE ALSO πŸ‘€

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),

(yes bestie, those trailing commas are canon, i don't make the rules πŸ’€)


Copyright 2020-2024 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>.

fr fr read the license before you do anything, it's not optional πŸ™ˆ

and that's the whole page, bestie!! this was version 3.5.6, dated 2026-04-07 β€” slay, iconic, periodt. go forth and exchange those keys πŸ’œπŸ”₯

πŸ“¦ where this page comes from