33525 Commits

Author SHA1 Message Date
Gilles Peskine
cd5abfe7b4 Move the X.509 and SSL content from the crypto migration guide
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2025-06-30 13:17:23 +02:00
Gilles Peskine
2607918066 Move PSA transition document to TF-PSA-Crypto
It went with Mbed TLS in the repository split, but belongs in TF-PSA-Crypto.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2025-06-30 13:17:23 +02:00
Gilles Peskine
1c2d9a3d74 Migration guide for OID
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2025-06-30 13:17:23 +02:00
Gilles Peskine
8ba67aef0d Rendered documentation: info about private elements in public headers
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2025-06-30 13:17:23 +02:00
Gilles Peskine
0204470f38 Slight improvement to the Doxygen entry point
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2025-06-30 13:17:16 +02:00
Ben Taylor
b8ebc21ea2 Correct typo
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
2025-06-30 11:31:36 +01:00
Ben Taylor
5578c06ab3 Remove duplicated slash
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
2025-06-30 11:31:36 +01:00
Ben Taylor
d9fc98a569 Correct CFLAGS path int Makefile
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
2025-06-30 11:31:36 +01:00
Ben Taylor
56d54c6349 Remove fuzz progs from Makefile
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
2025-06-30 11:31:36 +01:00
Ben Taylor
c9b7175a68 Add in fuzz path variable
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
2025-06-30 11:31:36 +01:00
Ben Taylor
d6cc47e450 Add some name changes in to allow merge
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
2025-06-30 11:31:36 +01:00
Ben Taylor
80490a2f1a Revert some changes to allow merge
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
2025-06-30 11:31:36 +01:00
Ben Taylor
946b0d982a Corrected windows paths
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
2025-06-30 11:31:36 +01:00
Ben Taylor
9784b40ba7 Remove wildcard as it is no longer required
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
2025-06-30 11:31:36 +01:00
Ben Taylor
ebaf90ff3f Remove ChangeLog as it is not required
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
2025-06-30 11:31:36 +01:00
Ben Taylor
51ab2d4ffb Add ChangeLog
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
2025-06-30 11:31:36 +01:00
Ben Taylor
38b063a91e add fix to fuzz makefile for windows
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
2025-06-30 11:31:36 +01:00
Ben Taylor
7287040587 fixed issue with binary cleanup in fuzz programs
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
2025-06-30 11:31:36 +01:00
Ben Taylor
c42f5d4c90 added fix for Makefile in fuzz programs
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
2025-06-30 11:31:36 +01:00
Ben Taylor
aa5aa47aa5 corrected Makefile path for fuzz progs
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
2025-06-30 11:31:35 +01:00
Ben Taylor
a59cef43f2 add fixes for the fuzz Make system
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
2025-06-30 11:31:35 +01:00
Ben Taylor
dc027791e9 update common. to fuzz_common.h
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
2025-06-30 11:31:35 +01:00
Ben Taylor
eea3ddaf2c corrected cmake path
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
2025-06-30 11:31:35 +01:00
Ben Taylor
2584eaddf9 add fix for fuzz Makefile for new common path
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
2025-06-30 11:31:35 +01:00
Ben Taylor
107b21ce53 removed common.* from programs/fuzz
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
2025-06-30 11:31:35 +01:00
Ben Taylor
dd27691c61 remove fuzz_privkey.c and fuzz_pubkey.c
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
2025-06-30 11:31:35 +01:00
Manuel Pégourié-Gonnard
921331867d
Merge pull request #10197 from gilles-peskine-arm/ssl_helpers-split_perform_handshake-dev
Break down mbedtls_test_ssl_perform_handshake
2025-06-30 09:39:29 +00:00
Minos Galanakis
71157fd574 Update BRANCHES.md
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2025-06-27 13:01:26 +01:00
Minos Galanakis
8bccf16218 Assemble ChangeLog
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2025-06-27 13:01:26 +01:00
Minos Galanakis
09dc57d323 Version Bump
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2025-06-27 12:17:28 +01:00
Minos Galanakis
42bfc164a2 Updated tf-psa-crypto pointer (tf-psa-crypto-1.0.0-beta)
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2025-06-27 12:17:28 +01:00
Gilles Peskine
0038408f55 Properly initialize SSL endpoint objects
In some cases, we were calling `mbedtls_test_ssl_endpoint_free()` on an
uninitialized `mbedtls_test_ssl_endpoint` object if the test case failed
early, e.g. due to `psa_crypto_init()` failing. This was largely harmless,
but could have caused weird test results in case of failure, and was flagged
by Coverity.

Use a more systematic style for initializing the stack object as soon as
it's declared.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2025-06-27 11:12:55 +01:00
Gilles Peskine
042ee3b318 Fix accidentally skipped test assertion
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2025-06-27 11:12:55 +01:00
Minos Galanakis
ed87da7ad7 Merge remote-tracking branch 'restricted/development-restricted' into future_rc
As set by process the tf-psa-crypto submodule is set
to point to tf-psa-crypto-release-sync input.
2025-06-27 10:50:33 +01:00
Manuel Pégourié-Gonnard
42c4bddc07
Merge pull request #10245 from felixc-arm/gcc-15-remove-wnoerror-dev
[Dev] Turn Wunterminated-string-initialization back into an error
2025-06-26 07:08:33 +00:00
Gilles Peskine
f68f45c827
Merge pull request #10213 from valeriosetti/issue298-development
[development] PK: try storing all private RSA keys in PSA (2/3)
2025-06-25 15:23:27 +00:00
Gilles Peskine
c10c233676 Migration guide: more info about private elements in public headers
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2025-06-25 15:39:35 +02:00
Gilles Peskine
2c77014bc0 Copy of text about private identifiers from crypto
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2025-06-25 15:39:10 +02:00
minosgalanakis
247ad6e303
Merge pull request #10251 from gilles-peskine-arm/tls-exporter-coverity-202505-dev
Fix SSL exporter tests
2025-06-25 10:19:32 +00:00
Valerio Setti
abfa8acb39 framework: update reference
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
2025-06-25 10:25:03 +02:00
Valerio Setti
e0fb40e6fb library: debug: add error log message in mbedtls_debug_print_psa_rsa()
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
2025-06-25 10:25:03 +02:00
Valerio Setti
069617fdce library: debug: improve input param check in mbedtls_debug_print_psa_rsa()
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
2025-06-25 10:25:02 +02:00
Valerio Setti
0c92466bb0 library: debug: rename len as bitlen in mbedtls_debug_print_integer()
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
2025-06-25 10:25:02 +02:00
Valerio Setti
a18627a625 library: debug: add comment to explain no-code-check comments
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
2025-06-25 10:25:02 +02:00
Valerio Setti
27eb0141b9 tests: suite_x509parse: rename variable in x509parse_crt()
- rename result_ext to result_back_comp
- add a comment to describe its purpose

Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
2025-06-25 10:25:02 +02:00
Valerio Setti
210b61111b tests: suite_x509parse: fix indentation in x509parse_crt()
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
2025-06-25 10:25:02 +02:00
Valerio Setti
1e4423bcfa library: debug: add comment for follow-up in mbedtls_debug_print_psa_rsa()
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
2025-06-25 10:25:02 +02:00
Valerio Setti
6676f72a5f library: debug: rename mbedtls_debug_print_ec_coord()
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
2025-06-25 10:25:02 +02:00
Valerio Setti
2747ac1e70 tests: x509parse: fix RSA key in DER certificates
The previous key was not correct so it could not be imported into PSA
for validation inside the PK module.

Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
2025-06-25 10:25:02 +02:00
Valerio Setti
11345e9de3 tests: x509parse: fix return values for invalid RSA keys
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
2025-06-25 10:25:02 +02:00