Declare internal variables static in ecp.c

This commit is contained in:
Manuel Pégourié-Gonnard 2013-12-01 16:51:27 +01:00
parent a0d758b917
commit 43863eeffc

View File

@ -75,7 +75,7 @@
* Counts of point addition and doubling, and field multiplications. * Counts of point addition and doubling, and field multiplications.
* Used to test resistance of point multiplication to simple timing attacks. * Used to test resistance of point multiplication to simple timing attacks.
*/ */
unsigned long add_count, dbl_count, mul_count; static unsigned long add_count, dbl_count, mul_count;
#endif #endif
/* /*
@ -85,7 +85,7 @@ unsigned long add_count, dbl_count, mul_count;
* - size in bits * - size in bits
* - readable name * - readable name
*/ */
const ecp_curve_info ecp_supported_curves[] = static const ecp_curve_info ecp_supported_curves[] =
{ {
#if defined(POLARSSL_ECP_DP_BP512R1_ENABLED) #if defined(POLARSSL_ECP_DP_BP512R1_ENABLED)
{ POLARSSL_ECP_DP_BP512R1, 28, 512, "brainpoolP512r1" }, { POLARSSL_ECP_DP_BP512R1, 28, 512, "brainpoolP512r1" },