mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
Fix for missing curve specs when using ATECC due to PR (https://github.com/wolfSSL/wolfssl/pull/2115).
This commit is contained in:
@@ -1150,11 +1150,9 @@ const ecc_set_type ecc_sets[] = {
|
|||||||
static int wc_ecc_export_x963_compressed(ecc_key*, byte* out, word32* outLen);
|
static int wc_ecc_export_x963_compressed(ecc_key*, byte* out, word32* outLen);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WOLFSSL_ATECC508A
|
|
||||||
typedef void* ecc_curve_spec;
|
|
||||||
#else
|
|
||||||
|
|
||||||
#if defined(WOLFSSL_VALIDATE_ECC_KEYGEN) || !defined(WOLFSSL_SP_MATH)
|
#if (defined(WOLFSSL_VALIDATE_ECC_KEYGEN) || !defined(WOLFSSL_SP_MATH)) && \
|
||||||
|
!defined(WOLFSSL_ATECC508A)
|
||||||
static int ecc_check_pubkey_order(ecc_key* key, ecc_point* pubkey, mp_int* a,
|
static int ecc_check_pubkey_order(ecc_key* key, ecc_point* pubkey, mp_int* a,
|
||||||
mp_int* prime, mp_int* order);
|
mp_int* prime, mp_int* order);
|
||||||
#endif
|
#endif
|
||||||
@@ -1439,8 +1437,6 @@ void wc_ecc_curve_cache_free(void)
|
|||||||
}
|
}
|
||||||
#endif /* ECC_CACHE_CURVE */
|
#endif /* ECC_CACHE_CURVE */
|
||||||
|
|
||||||
#endif /* WOLFSSL_ATECC508A */
|
|
||||||
|
|
||||||
|
|
||||||
/* Retrieve the curve name for the ECC curve id.
|
/* Retrieve the curve name for the ECC curve id.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user