Add EVP_PKEY support for X25519. cryptography.io expects X25519 support to be exposed via EVP_PKEY. Also we're considering using EVP_PKEY to pass in keys for ESNI. This unfortunately requires adding some odd EVP_PKEY_set1_tls_encodedpoint and EVP_PKEY_get1_tls_encodedpoint APIs which cryptography.io uses for X25519 because the EVP_PKEY "raw" functions did not exist at the time. To test, implement EVP_PKEY_derive support in evp_tests.txt. Change-Id: Ie0666bb9aba13eecf203156dc047ac49ef6d0093 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/36788 Reviewed-by: Adam Langley <agl@google.com>
diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt index 81560c9..477faae 100644 --- a/crypto/CMakeLists.txt +++ b/crypto/CMakeLists.txt
@@ -282,6 +282,8 @@ evp/p_ed25519_asn1.c evp/p_rsa.c evp/p_rsa_asn1.c + evp/p_x25519.c + evp/p_x25519_asn1.c evp/pbkdf.c evp/print.c evp/scrypt.c