openssl: Add support for Ed25519 via AWS-LC

This commit is contained in:
Tobias Brunner
2025-08-21 16:44:01 +02:00
parent 4096a911a0
commit 052a939553
4 changed files with 30 additions and 7 deletions
@@ -157,11 +157,12 @@ private_key_t *openssl_wrap_private_key(EVP_PKEY *key, bool engine)
case EVP_PKEY_EC:
return openssl_ec_private_key_create(key, engine);
#endif
#if OPENSSL_VERSION_NUMBER >= 0x1010100fL && !defined(OPENSSL_NO_EC) && \
!defined(OPENSSL_IS_AWSLC)
#if OPENSSL_VERSION_NUMBER >= 0x1010100fL && !defined(OPENSSL_NO_EC)
case EVP_PKEY_ED25519:
#ifndef OPENSSL_IS_AWSLC
case EVP_PKEY_ED448:
return openssl_ed_private_key_create(key, engine);
#endif
return openssl_ed_private_key_create(key, FALSE);
#endif /* OPENSSL_VERSION_NUMBER && !OPENSSL_NO_EC && !OPENSSL_IS_AWSLC */
default:
EVP_PKEY_free(key);