mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 18:19:02 +00:00
1447924c95
Updates mbedtls to 2.14.1. This builds on the previous master commit7849f74117
. Fixes in 2.13.0: * Fixed a security issue in the X.509 module which could lead to a buffer overread during certificate extensions parsing. * Several bugfixes. * Improvements for better support for DTLS on low-bandwidth, high latency networks with high packet loss. Fixes in 2.14.1: * CVE-2018-19608: Local timing attack on RSA decryption Includes master commit9e7c4702a1
'mbedtls: fix compilation on ARM < 6'. Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net> [Update to 2.14.1] Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> [Adapted and squashed for 18.06.1+] Signed-off-by: Stijn Segers <foss@volatilesystems.org> Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
28 lines
956 B
Diff
28 lines
956 B
Diff
From 7aff5a70f3580426865b6c86437a3e47546d13f7 Mon Sep 17 00:00:00 2001
|
|
From: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Date: Sun, 16 Dec 2018 13:02:49 +0100
|
|
Subject: [PATCH] bn_mul.h: Use optimized MULADDC code only on ARM >= 6
|
|
|
|
The optimized code uses umaal which was only introduced with ARMv6 and
|
|
is not available on older versions.
|
|
This broke compilation with arm926ej-s CPU for me.
|
|
|
|
Fixes: 16b1bd89326 ("bn_mul.h: add ARM DSP optimized MULADDC code")
|
|
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
---
|
|
include/mbedtls/bn_mul.h | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
--- a/include/mbedtls/bn_mul.h
|
|
+++ b/include/mbedtls/bn_mul.h
|
|
@@ -638,7 +638,8 @@
|
|
"r6", "r7", "r8", "r9", "cc" \
|
|
);
|
|
|
|
-#elif defined (__ARM_FEATURE_DSP) && (__ARM_FEATURE_DSP == 1)
|
|
+#elif defined (__ARM_FEATURE_DSP) && (__ARM_FEATURE_DSP == 1) && \
|
|
+ __TARGET_ARCH_ARM >= 6
|
|
|
|
#define MULADDC_INIT \
|
|
asm(
|