File tree Expand file tree Collapse file tree 4 files changed +28
-1
lines changed
en/api-guides/performance
zh_CN/api-guides/performance Expand file tree Collapse file tree 4 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -982,6 +982,16 @@ menu "mbedTLS"
982
982
983
983
Disabling this option saves some code size.
984
984
985
+ config MBEDTLS_ECP_FIXED_POINT_OPTIM
986
+ bool "Enable fixed-point multiplication optimisations"
987
+ depends on MBEDTLS_ECP_C
988
+ default y
989
+ help
990
+ This configuration option enables optimizations to speedup (about 3 ~ 4 times) the ECP
991
+ fixed point multiplication using pre-computed tables in the flash memory.
992
+ Disabling this configuration option saves flash footprint (about 29KB if all Elliptic Curve selected)
993
+ in the application binary.
994
+
985
995
# end of Elliptic Curve options
986
996
987
997
config MBEDTLS_POLY1305_C
Original file line number Diff line number Diff line change 488
488
#undef MBEDTLS_ECP_NIST_OPTIM
489
489
#endif
490
490
491
+ /**
492
+ * \def MBEDTLS_ECP_FIXED_POINT_OPTIM
493
+ *
494
+ * Enable speed up fixed-point multiplication.
495
+ *
496
+ * Comment this macro to disable FIXED POINT curves optimisation.
497
+ */
498
+ #ifdef CONFIG_MBEDTLS_ECP_FIXED_POINT_OPTIM
499
+ #define MBEDTLS_ECP_FIXED_POINT_OPTIM 1
500
+ #else
501
+ #define MBEDTLS_ECP_FIXED_POINT_OPTIM 0
502
+ #endif
503
+
491
504
/**
492
505
* \def MBEDTLS_ECDSA_DETERMINISTIC
493
506
*
Original file line number Diff line number Diff line change @@ -502,6 +502,8 @@ These include:
502
502
- :ref: `CONFIG_MBEDTLS_CCM_C `
503
503
- :ref: `CONFIG_MBEDTLS_GCM_C `
504
504
- :ref: `CONFIG_MBEDTLS_ECP_C ` (Alternatively: Leave this option enabled but disable some of the elliptic curves listed in the sub-menu.)
505
+ - :ref: `CONFIG_MBEDTLS_ECP_NIST_OPTIM `
506
+ - :ref: `CONFIG_MBEDTLS_ECP_FIXED_POINT_OPTIM `
505
507
- Change :ref: `CONFIG_MBEDTLS_TLS_MODE ` if both server & client functionalities are not needed
506
508
- Consider disabling some cipher suites listed in the ``TLS Key Exchange Methods `` sub-menu (i.e. :ref: `CONFIG_MBEDTLS_KEY_EXCHANGE_RSA `)
507
509
Original file line number Diff line number Diff line change @@ -484,7 +484,7 @@ ESP-IDF 的 I/O 函数( ``printf()`` 和 ``scanf()`` 等)默认使用 Newlib
484
484
485
485
.. _minimizing_binary_mbedtls :
486
486
487
- mbedTLS 功能
487
+ MbedTLS 功能
488
488
@@@@@@@@@@@@@@@@@@@@@
489
489
490
490
在 **Component Config ** > **mbedTLS ** 下有多个默认启用的 mbedTLS 功能,如果不需要,可以禁用相应功能以减小代码大小。
@@ -502,6 +502,8 @@ mbedTLS 功能
502
502
- :ref: `CONFIG_MBEDTLS_CCM_C `
503
503
- :ref: `CONFIG_MBEDTLS_GCM_C `
504
504
- :ref: `CONFIG_MBEDTLS_ECP_C ` (或者:启用此选项,但在子菜单中禁用部分椭圆曲线)
505
+ - :ref: `CONFIG_MBEDTLS_ECP_NIST_OPTIM `
506
+ - :ref: `CONFIG_MBEDTLS_ECP_FIXED_POINT_OPTIM `
505
507
- 如果不需要 mbedTLS 的服务器和客户端功能,可以修改 :ref: `CONFIG_MBEDTLS_TLS_MODE `
506
508
- 可以考虑禁用在 ``TLS Key Exchange Methods `` 子菜单中列出的一些密码套件(例如 :ref: `CONFIG_MBEDTLS_KEY_EXCHANGE_RSA `),以减小代码大小。
507
509
You can’t perform that action at this time.
0 commit comments