Skip to content

Commit 6ec4abd

Browse files
authored
Merge pull request #52 from ceolin/mbedtls-352
Bump mbedTLS to 3.5.2 (latest release)
2 parents 66ed227 + cd0b997 commit 6ec4abd

File tree

540 files changed

+1037
-7105
lines changed

Some content is hidden

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

540 files changed

+1037
-7105
lines changed

.uncrustify.cfg

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,7 @@
44
# to Mbed TLS.
55
#
66
# Copyright The Mbed TLS Contributors
7-
# SPDX-License-Identifier: Apache-2.0
8-
#
9-
# Licensed under the Apache License, Version 2.0 (the "License"); you may
10-
# not use this file except in compliance with the License.
11-
# You may obtain a copy of the License at
12-
#
13-
# http://www.apache.org/licenses/LICENSE-2.0
14-
#
15-
# Unless required by applicable law or agreed to in writing, software
16-
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
17-
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18-
# See the License for the specific language governing permissions and
19-
# limitations under the License.
7+
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
208

219

2210
# Wrap lines at 100 characters

3rdparty/everest/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ target_include_directories(${everest_target}
1818
# everest is not directly linked against any mbedtls targets
1919
# so does not inherit the compile definitions.
2020
if(MBEDTLS_CONFIG_FILE)
21-
target_compile_definitions(everest
21+
target_compile_definitions(${everest_target}
2222
PUBLIC MBEDTLS_CONFIG_FILE="${MBEDTLS_CONFIG_FILE}")
2323
endif()
2424
if(MBEDTLS_USER_CONFIG_FILE)
25-
target_compile_definitions(everest
25+
target_compile_definitions(${everest_target}
2626
PUBLIC MBEDTLS_USER_CONFIG_FILE="${MBEDTLS_USER_CONFIG_FILE}")
2727
endif()
2828

3rdparty/p256-m/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ target_include_directories(${p256m_target}
1616
# p256m is not directly linked against any mbedtls targets
1717
# so does not inherit the compile definitions.
1818
if(MBEDTLS_CONFIG_FILE)
19-
target_compile_definitions(p256m
19+
target_compile_definitions(${p256m_target}
2020
PUBLIC MBEDTLS_CONFIG_FILE="${MBEDTLS_CONFIG_FILE}")
2121
endif()
2222
if(MBEDTLS_USER_CONFIG_FILE)
23-
target_compile_definitions(p256m
23+
target_compile_definitions(${p256m_target}
2424
PUBLIC MBEDTLS_USER_CONFIG_FILE="${MBEDTLS_USER_CONFIG_FILE}")
2525
endif()
2626

3rdparty/p256-m/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The files within the `p256-m/` subdirectory originate from the [p256-m GitHub repository](https://github.com/mpg/p256-m), which is distributed under the Apache 2.0 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.
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.
22

3-
The files `p256-m.c` and `.h`, along with the license, have been taken from the `p256-m` repository.
3+
The files `p256-m.c`, `p256-m.h` and `README.md` have been taken from the `p256-m` repository.
44
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()`.

3rdparty/p256-m/p256-m/LICENSE

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

3rdparty/p256-m/p256-m/p256-m.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright The Mbed TLS Contributors
55
* Author: Manuel Pégourié-Gonnard.
6-
* SPDX-License-Identifier: Apache-2.0
6+
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
77
*/
88

99
#include "p256-m.h"

3rdparty/p256-m/p256-m/p256-m.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright The Mbed TLS Contributors
55
* Author: Manuel Pégourié-Gonnard.
6-
* SPDX-License-Identifier: Apache-2.0
6+
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
77
*/
88
#ifndef P256_M_H
99
#define P256_M_H

3rdparty/p256-m/p256-m_driver_entrypoints.c

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,7 @@
33
*/
44
/*
55
* Copyright The Mbed TLS Contributors
6-
* SPDX-License-Identifier: Apache-2.0
7-
*
8-
* Licensed under the Apache License, Version 2.0 (the "License"); you may
9-
* not use this file except in compliance with the License.
10-
* You may obtain a copy of the License at
11-
*
12-
* http://www.apache.org/licenses/LICENSE-2.0
13-
*
14-
* Unless required by applicable law or agreed to in writing, software
15-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17-
* See the License for the specific language governing permissions and
18-
* limitations under the License.
6+
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
197
*/
208

219
#include "mbedtls/platform.h"

3rdparty/p256-m/p256-m_driver_entrypoints.h

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,7 @@
33
*/
44
/*
55
* Copyright The Mbed TLS Contributors
6-
* SPDX-License-Identifier: Apache-2.0
7-
*
8-
* Licensed under the Apache License, Version 2.0 (the "License"); you may
9-
* not use this file except in compliance with the License.
10-
* You may obtain a copy of the License at
11-
*
12-
* http://www.apache.org/licenses/LICENSE-2.0
13-
*
14-
* Unless required by applicable law or agreed to in writing, software
15-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17-
* See the License for the specific language governing permissions and
18-
* limitations under the License.
6+
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
197
*/
208

219
#ifndef P256M_DRIVER_ENTRYPOINTS_H

BRANCHES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,6 @@ The following branches are currently maintained:
106106
- [`development`](https://github.com/Mbed-TLS/mbedtls/)
107107
- [`mbedtls-2.28`](https://github.com/Mbed-TLS/mbedtls/tree/mbedtls-2.28)
108108
maintained until at least the end of 2024, see
109-
<https://github.com/Mbed-TLS/mbedtls/releases/tag/v2.28.5>.
109+
<https://github.com/Mbed-TLS/mbedtls/releases/tag/v2.28.7>.
110110

111111
Users are urged to always use the latest version of a maintained branch.

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ if(NOT DISABLE_PACKAGE_CONFIG_AND_INSTALL)
377377
write_basic_package_version_file(
378378
"cmake/MbedTLSConfigVersion.cmake"
379379
COMPATIBILITY SameMajorVersion
380-
VERSION 3.5.0)
380+
VERSION 3.5.2)
381381

382382
install(
383383
FILES "${CMAKE_CURRENT_BINARY_DIR}/cmake/MbedTLSConfig.cmake"

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ Mbed TLS is well documented, but if you think documentation is needed, speak out
8484
License and Copyright
8585
---------------------
8686

87-
Unless specifically indicated otherwise in a file, Mbed TLS files are provided under the [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html) license. See the [LICENSE](LICENSE) file for the full text of this license.
87+
Unless specifically indicated otherwise in a file, Mbed TLS files are provided under a dual [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html) OR [GPL-2.0-or-later](https://spdx.org/licenses/GPL-2.0-or-later.html) license. See the [LICENSE](LICENSE) file for the full text of these licenses. This means that users may choose which of these licenses they take the code under.
8888

8989
Contributors must accept that their contributions are made under both the Apache-2.0 AND [GPL-2.0-or-later](https://spdx.org/licenses/GPL-2.0-or-later.html) licenses. This enables LTS (Long Term Support) branches of the software to be provided under either the Apache-2.0 or GPL-2.0-or-later licenses.
9090

91-
All new files should include the [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html) standard license header where possible.
91+
All new files should include the standard SPDX license identifier where possible, i.e. "SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later".
9292

9393
The copyright on contributions is retained by the original authors of the code. Where possible for new files, this should be noted in a comment at the top of the file in the form: "Copyright The Mbed TLS Contributors".
9494

0 commit comments

Comments
 (0)