Merge pull request #3559 from tmael/cc310_ecc_k

Fix Cryptocell ecc build err
This commit is contained in:
David Garske
2020-12-14 10:50:30 -08:00
committed by GitHub

View File

@ -4133,6 +4133,7 @@ int wc_ecc_point_is_at_infinity(ecc_point* p)
return 0; return 0;
} }
#endif /* !WOLFSSL_ATECC508A && !WOLFSSL_CRYPTOCELL */
/* generate random and ensure its greater than 0 and less than order */ /* generate random and ensure its greater than 0 and less than order */
int wc_ecc_gen_k(WC_RNG* rng, int size, mp_int* k, mp_int* order) int wc_ecc_gen_k(WC_RNG* rng, int size, mp_int* k, mp_int* order)
@ -4176,7 +4177,6 @@ int wc_ecc_gen_k(WC_RNG* rng, int size, mp_int* k, mp_int* order)
return NOT_COMPILED_IN; return NOT_COMPILED_IN;
#endif /* !WC_NO_RNG */ #endif /* !WC_NO_RNG */
} }
#endif /* !WOLFSSL_ATECC508A && !WOLFSSL_CRYPTOCELL */
static WC_INLINE void wc_ecc_reset(ecc_key* key) static WC_INLINE void wc_ecc_reset(ecc_key* key)
{ {