openssl: Add support for Ed25519 via AWS-LC
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user