diff options
author | Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk> | 2016-10-12 11:42:15 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2016-10-13 20:25:42 +0200 |
commit | c5e48abcc6c09d5f2d55c63985a769c74d245a08 (patch) | |
tree | c6443685f3cbb2976accc4ea17fff57b1dbe484e | |
parent | f14b3705deca7f9f2ed1e3f7dbb5d5d7ff0ba9d1 (diff) | |
download | upstream-c5e48abcc6c09d5f2d55c63985a769c74d245a08.tar.gz upstream-c5e48abcc6c09d5f2d55c63985a769c74d245a08.tar.bz2 upstream-c5e48abcc6c09d5f2d55c63985a769c74d245a08.zip |
mbedtls: enable NIST curves optimisation.
luci using ustream-mbedtls is extremely slow vs ustream-polarssl.
polarssl alias mbedtls v1 is configured to use NIST prime speed
optimisation, so no longer disable the default optimisation for
mbedtls v2.
Compile & run tested: Archer C7v2
Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
[Jo-Philipp Wich: refresh patch to use common format]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r-- | package/libs/mbedtls/patches/200-config.patch | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/package/libs/mbedtls/patches/200-config.patch b/package/libs/mbedtls/patches/200-config.patch index e4118ff3ef..54910b95a2 100644 --- a/package/libs/mbedtls/patches/200-config.patch +++ b/package/libs/mbedtls/patches/200-config.patch @@ -36,15 +36,6 @@ #define MBEDTLS_ECP_DP_SECP256K1_ENABLED #define MBEDTLS_ECP_DP_BP256R1_ENABLED #define MBEDTLS_ECP_DP_BP384R1_ENABLED -@@ -457,7 +457,7 @@ - * - * Comment this macro to disable NIST curves optimisation. - */ --#define MBEDTLS_ECP_NIST_OPTIM -+//#define MBEDTLS_ECP_NIST_OPTIM - - /** - * \def MBEDTLS_ECDSA_DETERMINISTIC @@ -517,7 +517,7 @@ * MBEDTLS_TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA * MBEDTLS_TLS_DHE_PSK_WITH_RC4_128_SHA |