Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
1dedfff
[zep fromtree] psa: crypto_extra: improve buffer size computation for…
valeriosetti Oct 13, 2025
16659ea
[zep fromtree] psa: crypto_extra: update documentation of MBEDTLS_PSA…
valeriosetti Oct 16, 2025
a260d68
[zep fromtree] Avoid invalid gcc 14.3 warning about array bounds in m…
keith-packard Jun 5, 2025
77ad310
[zep fromtree] fix: remove superfluous BEFORE_COLON in x509_crl.c
stgloorious Feb 21, 2025
d65d02b
[zep fromtree] fix: rename BEFORE_COLON and BC to avoid conflicts
stgloorious Feb 21, 2025
95a7061
[zep noup] Add TF-M Builtin Key Loader driver entry points
adeaarm Mar 21, 2024
a84ded0
[zep noup] Enable crypto code sharing between independent binaries
tamasban Oct 27, 2020
be80296
[zep noup] Allow SE key to use key vendor id within PSA crypto
BenBaratte Feb 9, 2023
5c6c718
[zep noup] Initialise driver wrappers as first step in psa_crypto_init()
adeaarm Mar 21, 2024
b50f919
[zep noup] Hardcode CC3XX entry points
adeaarm Mar 21, 2024
ae58d91
[zep noup] Enable psa_can_do_hash
adeaarm Mar 21, 2024
413c229
[zep noup] Enable sources when MCUBOOT_USE_PSA_CRYPTO and not MBEDTLS…
adeaarm Apr 9, 2024
18419ba
[zep noup] config_psa: include legacy module adjusting in MCUBOOT
valeriosetti Jul 25, 2024
d058507
[zep noup] zephyr: Add security SBOM info and module name
ceolin Jul 3, 2025
320acb4
[zep noup] cmake: Bump minimum cmake to 3.20.0
ceolin Jul 11, 2025
a3ed50a
[zep noup] Unlink framework subrepo
valeriosetti Oct 28, 2025
622da34
[zep noup] Add framework subrepo as a flattened directory
valeriosetti Oct 28, 2025
be094cd
[zep noup] document the additional patches
tomi-font Oct 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 1 addition & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

# We specify a minimum requirement of 3.10.2, but for now use 3.5.1 here
# until our infrastructure catches up.
cmake_minimum_required(VERSION 3.5.1)
cmake_minimum_required(VERSION 3.20.0)

include(CMakePackageConfigHelpers)

Expand Down Expand Up @@ -315,15 +315,6 @@ if(LIB_INSTALL_DIR)
set(CMAKE_INSTALL_LIBDIR "${LIB_INSTALL_DIR}")
endif()

if (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/framework/CMakeLists.txt")
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
message(FATAL_ERROR "${CMAKE_CURRENT_SOURCE_DIR}CMakeLists.txt not found (and does appear to be a git checkout). Run `git submodule update --init` from the source tree to fetch the submodule contents.")
else ()
message(FATAL_ERROR "${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt not found (and does not appear to be a git checkout). Please ensure you have downloaded the right archive from the release page on GitHub.")
endif()
endif()
add_subdirectory(framework)

add_subdirectory(include)

add_subdirectory(3rdparty)
Expand Down
4 changes: 4 additions & 0 deletions ChangeLog.d/gcc-14.3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Bugfix
* Appease GCC 14.3's array bounds checker by inserting checks in mbedtls_xor
that bail before the byte-at-a-time loop when the array size is a constant
(using MBEDTLS_HAS_BUILTIN) and an exact multiple of the larger loop size.
19 changes: 0 additions & 19 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,6 @@ DESTDIR=/usr/local
PREFIX=mbedtls_
PERL ?= perl

ifneq (,$(filter-out lib library/%,$(or $(MAKECMDGOALS),all)))
ifeq (,$(wildcard framework/exported.make))
# Use the define keyword to get a multi-line message.
# GNU make appends ". Stop.", so tweak the ending of our message accordingly.
ifneq (,$(wildcard .git))
define error_message
${MBEDTLS_PATH}/framework/exported.make not found (and does appear to be a git checkout). Run `git submodule update --init` from the source tree to fetch the submodule contents.
This is a fatal error
endef
else
define error_message
${MBEDTLS_PATH}/framework/exported.make not found (and does not appear to be a git checkout). Please ensure you have downloaded the right archive from the release page on GitHub.
endef
endif
$(error $(error_message))
endif
include framework/exported.make
endif

.SILENT:

.PHONY: all no_test programs lib tests install uninstall clean test check lcov apidoc apidoc_clean
Expand Down
361 changes: 43 additions & 318 deletions README.md

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions code_share.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/* This is a deliberately empty file just to check whether the patch for enabling
* extensive crypto code sharing was already applied on the mbedtls library.
*/
1 change: 0 additions & 1 deletion framework
Submodule framework deleted from 457996
1 change: 1 addition & 0 deletions framework/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# This file is intentionally left blank. It soon won't be.
26 changes: 26 additions & 0 deletions framework/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Contributing
============
We gratefully accept bug reports and contributions from the community. All PRs are reviewed by the project team / community, and may need some modifications to
be accepted.

Most contributions in this repository will be associated with [Mbed TLS](https://github.com/Mbed-TLS/mbedtls/blob/development/CONTRIBUTING.md) or TF-PSA-Crypto. Please consult their respective contribution guidelines for more information.

What can I contribute here?
---------------------------

This repository is intended to contain files that are shared between multiple maintained branches of Mbed TLS and TF-PSA-Crypto. The exact policies are not yet written down. Please contribute in this repository if you wish to update one of the files that are present here.

License and Copyright
---------------------

Unless specifically indicated otherwise in a file, Mbed TLS framework 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.

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.

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".

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".

When contributing code to us, the committer and all authors are required to make the submission under the terms of the [Developer Certificate of Origin](dco.txt), confirming that the code submitted can (legally) become part of the project, and is submitted under both the Apache-2.0 AND GPL-2.0-or-later licenses.

This is done by including the standard Git `Signed-off-by:` line in every commit message. If more than one person contributed to the commit, they should also add their own `Signed-off-by:` line.
Loading