feat(mbedtls): support ecp fixed-point multiplication configurable

This commit is contained in:
Jiang Guang Ming
2023-08-02 17:56:02 +08:00
parent 31d87a0c59
commit 3f2746688c
2 changed files with 23 additions and 0 deletions

View File

@@ -488,6 +488,19 @@
#undef MBEDTLS_ECP_NIST_OPTIM
#endif
/**
* \def MBEDTLS_ECP_FIXED_POINT_OPTIM
*
* Enable speed up fixed-point multiplication.
*
* Comment this macro to disable FIXED POINT curves optimisation.
*/
#ifdef CONFIG_MBEDTLS_ECP_FIXED_POINT_OPTIM
#define MBEDTLS_ECP_FIXED_POINT_OPTIM 1
#else
#define MBEDTLS_ECP_FIXED_POINT_OPTIM 0
#endif
/**
* \def MBEDTLS_ECDSA_DETERMINISTIC
*