forked from wolfSSL/wolfssl
Only expose ECC APIs on config define
This commit is contained in:
@ -341,7 +341,7 @@ AC_ARG_ENABLE([wpas],
|
|||||||
if test "$ENABLED_WPAS" = "yes"
|
if test "$ENABLED_WPAS" = "yes"
|
||||||
then
|
then
|
||||||
AM_CFLAGS="$AM_CFLAGS -DHAVE_SECRET_CALLBACK -DWOLFSSL_STATIC_RSA"
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_SECRET_CALLBACK -DWOLFSSL_STATIC_RSA"
|
||||||
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_PUBLIC_MP"
|
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_PUBLIC_MP -DWOLFSSL_PUBLIC_ECC_ADD_DBL"
|
||||||
AM_CFLAGS="$AM_CFLAGS -DATOMIC_USER"
|
AM_CFLAGS="$AM_CFLAGS -DATOMIC_USER"
|
||||||
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_WPAS"
|
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_WPAS"
|
||||||
fi
|
fi
|
||||||
|
@ -291,12 +291,17 @@ const char* wc_ecc_get_name(int curve_id);
|
|||||||
|
|
||||||
#ifndef WOLFSSL_ATECC508A
|
#ifndef WOLFSSL_ATECC508A
|
||||||
|
|
||||||
WOLFSSL_API int ecc_map(ecc_point*, mp_int*, mp_digit);
|
#ifdef WOLFSSL_PUBLIC_ECC_ADD_DBL
|
||||||
WOLFSSL_API int ecc_projective_add_point(ecc_point* P, ecc_point* Q,
|
#define ECC_API WOLFSSL_API
|
||||||
ecc_point* R, mp_int* a,
|
#else
|
||||||
mp_int* modulus, mp_digit mp);
|
#define ECC_API WOLFSSL_LOCAL
|
||||||
WOLFSSL_API int ecc_projective_dbl_point(ecc_point* P, ecc_point* R, mp_int* a,
|
#endif
|
||||||
mp_int* modulus, mp_digit mp);
|
|
||||||
|
ECC_API int ecc_map(ecc_point*, mp_int*, mp_digit);
|
||||||
|
ECC_API int ecc_projective_add_point(ecc_point* P, ecc_point* Q, ecc_point* R,
|
||||||
|
mp_int* a, mp_int* modulus, mp_digit mp);
|
||||||
|
ECC_API int ecc_projective_dbl_point(ecc_point* P, ecc_point* R, mp_int* a,
|
||||||
|
mp_int* modulus, mp_digit mp);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user