Skip to content

Commit 1274cdc

Browse files
authored
thirdparty: upgrade to mbedtls v3.6.3.1, add a .patch file with the local changes (#24602)
1 parent 4fd405c commit 1274cdc

291 files changed

Lines changed: 99812 additions & 69465 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎thirdparty/mbedtls/3rdparty/everest/include/everest/kremlin/c_endianness.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#include <string.h>
88
#include <inttypes.h>
99

10+
#include "kremlin/internal/callconv.h"
11+
1012
/******************************************************************************/
1113
/* Implementing C.fst (part 2: endian-ness macros) */
1214
/******************************************************************************/

‎thirdparty/mbedtls/3rdparty/everest/include/everest/kremlin/internal/callconv.h‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@
2727
/* Since KreMLin emits the inline keyword unconditionally, we follow the
2828
* guidelines at https://gcc.gnu.org/onlinedocs/gcc/Inline.html and make this
2929
* __inline__ to ensure the code compiles with -std=c90 and earlier. */
30-
#ifdef __GNUC__
30+
#if defined(__GNUC__)
3131
# define inline __inline__
32+
#elif defined(_MSC_VER)
33+
# define inline __inline
3234
#endif
3335

3436
/* GCC-specific attribute syntax; everyone else gets the standard C inline

‎thirdparty/mbedtls/3rdparty/everest/include/everest/vs2010/inttypes.h‎

Lines changed: 0 additions & 36 deletions
This file was deleted.

‎thirdparty/mbedtls/3rdparty/everest/include/everest/vs2010/stdbool.h‎

Lines changed: 0 additions & 31 deletions
This file was deleted.

thirdparty/mbedtls/3rdparty/everest/include/everest/vs2010/Hacl_Curve25519.h renamed to thirdparty/mbedtls/3rdparty/everest/include/everest/vs2013/Hacl_Curve25519.h

File renamed without changes.

‎thirdparty/mbedtls/3rdparty/everest/include/everest/x25519.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* See the License for the specific language governing permissions and
1717
* limitations under the License.
1818
*
19-
* This file is part of mbed TLS (https://tls.mbed.org)
19+
* This file is part of Mbed TLS (https://tls.mbed.org)
2020
*/
2121

2222
#ifndef MBEDTLS_X25519_H

‎thirdparty/mbedtls/3rdparty/everest/library/Hacl_Curve25519_joined.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* See the License for the specific language governing permissions and
1717
* limitations under the License.
1818
*
19-
* This file is part of mbed TLS (https://tls.mbed.org)
19+
* This file is part of Mbed TLS (https://tls.mbed.org)
2020
*/
2121
#ifndef _BSD_SOURCE
2222
/* Required to get htole64() from gcc/glibc's endian.h (older systems)

‎thirdparty/mbedtls/3rdparty/everest/library/x25519.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* See the License for the specific language governing permissions and
1717
* limitations under the License.
1818
*
19-
* This file is part of mbed TLS (https://tls.mbed.org)
19+
* This file is part of Mbed TLS (https://tls.mbed.org)
2020
*/
2121

2222
#include "common.h"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
The files within the `p256-m/` subdirectory originate from the [p256-m GitHub repository](https://github.com/mpg/p256-m). They are distributed here under a dual Apache-2.0 OR GPL-2.0-or-later license. They are authored by Manuel Pégourié-Gonnard. p256-m is a minimalistic implementation of ECDH and ECDSA on NIST P-256, especially suited to constrained 32-bit environments. Mbed TLS documentation for integrating drivers uses p256-m as an example of a software accelerator, and describes how it can be integrated alongside Mbed TLS. It should be noted that p256-m files in the Mbed TLS repo will not be updated regularly, so they may not have fixes and improvements present in the upstream project.
2+
3+
The files `p256-m.c`, `p256-m.h` and `README.md` have been taken from the `p256-m` repository.
4+
It should be noted that p256-m deliberately does not supply its own cryptographically secure RNG function. As a result, the PSA RNG is used, with `p256_generate_random()` wrapping `psa_generate_random()`.

0 commit comments

Comments
 (0)