Make NIST curves optimisation an option

This commit is contained in:
Manuel Pégourié-Gonnard 2013-10-23 16:11:52 +02:00
parent 0f9149cb0a
commit c04c530a98
2 changed files with 25 additions and 0 deletions

View file

@ -259,6 +259,17 @@
#define POLARSSL_ECP_DP_BP384R1_ENABLED
#define POLARSSL_ECP_DP_BP512R1_ENABLED
/**
* \def POLARSSL_ECP_NIST_OPTIM
*
* Enable specific 'modulo p' routines for each NIST prime.
* Depending on the prime and architecture, makes operations 4 to 8 times
* faster on the corresponding curve.
*
* Comment this macro to disable NIST curves optimisation.
*/
#define POLARSSL_ECP_NIST_OPTIM
/**
* \def POLARSSL_KEY_EXCHANGE_PSK_ENABLED
*