mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
Made supported curves configurable
This commit is contained in:
parent
e2ab84f4a1
commit
5dc6b5fb05
6 changed files with 141 additions and 12 deletions
|
|
@ -183,11 +183,21 @@ static void ecp_bench_case( size_t dp, const char *s, const char *m )
|
|||
|
||||
static void ecp_bench( void )
|
||||
{
|
||||
ecp_bench_case( 0, "192", ECP_192_M );
|
||||
ecp_bench_case( 1, "224", ECP_224_M );
|
||||
ecp_bench_case( 2, "256", ECP_256_M );
|
||||
ecp_bench_case( 3, "384", ECP_384_M );
|
||||
ecp_bench_case( 4, "521", ECP_521_M );
|
||||
#if defined(POLARSSL_ECP_DP_SECP192R1_ENABLED)
|
||||
ecp_bench_case( POLARSSL_ECP_DP_SECP192R1, "192", ECP_192_M );
|
||||
#endif
|
||||
#if defined(POLARSSL_ECP_DP_SECP224R1_ENABLED)
|
||||
ecp_bench_case( POLARSSL_ECP_DP_SECP224R1, "224", ECP_224_M );
|
||||
#endif
|
||||
#if defined(POLARSSL_ECP_DP_SECP256R1_ENABLED)
|
||||
ecp_bench_case( POLARSSL_ECP_DP_SECP256R1, "256", ECP_256_M );
|
||||
#endif
|
||||
#if defined(POLARSSL_ECP_DP_SECP384R1_ENABLED)
|
||||
ecp_bench_case( POLARSSL_ECP_DP_SECP384R1, "384", ECP_384_M );
|
||||
#endif
|
||||
#if defined(POLARSSL_ECP_DP_SECP521R1_ENABLED)
|
||||
ecp_bench_case( POLARSSL_ECP_DP_SECP521R1, "521", ECP_521_M );
|
||||
#endif
|
||||
}
|
||||
|
||||
int main( int argc, char *argv[] )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue