psa_generate_derived_ecc_key_weierstrass_check_config: Build only when ECC enabled

Signed-off-by: Przemyslaw Stekiel <przemyslaw.stekiel@mobica.com>
This commit is contained in:
Przemyslaw Stekiel 2021-11-26 16:06:05 +01:00
parent 7b6e61a132
commit aaa1ada086

View file

@ -4949,6 +4949,10 @@ cleanup:
}
#endif
#if defined(MBEDTLS_PSA_BUILTIN_KEY_TYPE_ECC_KEY_PAIR) || \
defined(MBEDTLS_PSA_BUILTIN_KEY_TYPE_ECC_PUBLIC_KEY) || \
defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_ECC_KEY_PAIR) || \
defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_ECC_PUBLIC_KEY)
static psa_status_t psa_generate_derived_ecc_key_weierstrass_check_config(
psa_ecc_family_t curve,
size_t bits)
@ -4992,6 +4996,7 @@ static psa_status_t psa_generate_derived_ecc_key_weierstrass_check_config(
}
return PSA_SUCCESS;
}
#endif
static psa_status_t psa_generate_derived_key_internal(
psa_key_slot_t *slot,