Tom Cosgrove
|
350226f636
|
Use a macro for mbedtls_mpi_zeroize_and_free()
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
|
2023-07-25 15:10:14 +01:00 |
|
Agathiyan Bragadeesh
|
93a859341b
|
Remove remaining redundant casts
Signed-off-by: Agathiyan Bragadeesh <agathiyan.bragadeesh2@arm.com>
|
2023-07-25 12:28:59 +01:00 |
|
Agathiyan Bragadeesh
|
d298b76421
|
Remove redundant casts
Signed-off-by: Agathiyan Bragadeesh <agathiyan.bragadeesh2@arm.com>
|
2023-07-25 11:33:00 +01:00 |
|
Valerio Setti
|
19fec5487d
|
test: remove GENPRIME dependency when RSA_KEY_PAIR_GENERATE
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-25 12:31:50 +02:00 |
|
Valerio Setti
|
fe478909f0
|
psa_crypto_rsa: fix guards for importing the key
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-25 12:27:19 +02:00 |
|
Valerio Setti
|
46520ea52d
|
tls12: check buffer size before memcpy-ing data into it
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-25 11:41:28 +02:00 |
|
Valerio Setti
|
c9ae862225
|
tls: use TLS 1.3 guards in ssl_tls13 modules
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-25 11:23:50 +02:00 |
|
Valerio Setti
|
ea59c43499
|
tls: fix a comment a rename a variable/symbol
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-25 11:14:03 +02:00 |
|
Valerio Setti
|
d0371b0a08
|
debug: keep ECDH_C guard for debug printf accessing ecdh_context's items
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-25 10:57:01 +02:00 |
|
Valerio Setti
|
60d3b91eba
|
tls: use TLS 1.2 macros in ssl_tls12_server.c
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-25 10:43:53 +02:00 |
|
Tom Cosgrove
|
17526a0d16
|
Merge pull request #7906 from yanrayw/add-pake_guards_psa_crypto
PSA: add guards for PAKE getter functions
|
2023-07-24 15:59:28 +01:00 |
|
Agathiyan Bragadeesh
|
3dd3ae219e
|
Remove trailing backslash
Signed-off-by: Agathiyan Bragadeesh <agathiyan.bragadeesh2@arm.com>
|
2023-07-21 17:07:00 +01:00 |
|
Gilles Peskine
|
5647d06be8
|
Merge pull request #7518 from gilles-peskine-arm/psa_inject_entropy-file-stability
Fix and test MBEDTLS_PSA_INJECT_ENTROPY
|
2023-07-21 17:37:15 +02:00 |
|
Tom Cosgrove
|
e4e9e7da58
|
For tests, rename TEST_BUFFERS_EQUAL() to TEST_MEMORY_COMPARE()
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
|
2023-07-21 11:45:25 +01:00 |
|
Tom Cosgrove
|
a45d902822
|
Rename the length argument to TEST_CALLOC() to be the more accurate item_count
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
|
2023-07-21 11:36:11 +01:00 |
|
Tom Cosgrove
|
05b2a87ea0
|
For tests, rename TEST_CALLOC_OR_FAIL() to just TEST_CALLOC()
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
|
2023-07-21 11:32:25 +01:00 |
|
Ronald Cron
|
87f62850f3
|
Merge pull request #7893 from ronald-cron-arm/misc-from-psa-crypto
Miscellaneous fixes resulting from the work on PSA-Crypto
|
2023-07-21 10:54:41 +02:00 |
|
Xiaokang Qian
|
c495845e7a
|
Align ECP_MPI_INIT with mbedtls_mpi struct order in ecp_new.c
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-07-21 08:22:13 +00:00 |
|
Xiaokang Qian
|
73d98405b8
|
Rework the clone of ecp_curves.c
Change macro guard
rebase ecp_curves_new.c to the latest ecp_curves.c
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-07-21 08:22:12 +00:00 |
|
Xiaokang Qian
|
4d71051145
|
Enable build of ecp_curves_new.c
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-07-21 08:22:12 +00:00 |
|
Xiaokang Qian
|
dc2ea2705b
|
Clone the ecp_curve.c file as ecp_curve_new.c
Use macro guard MBEDTLS_ECP_WITH_MPI_UINT/STRUCT to enable
either c file
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
|
2023-07-21 08:22:11 +00:00 |
|
Tom Cosgrove
|
412a813ad4
|
For tests, rename ASSERT_ALLOC_WEAK() to TEST_CALLOC_OR_SKIP()
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
|
2023-07-20 16:55:14 +01:00 |
|
Gilles Peskine
|
c723e86e56
|
Fix copypasta in function documentation
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
|
2023-07-20 17:54:19 +02:00 |
|
Tom Cosgrove
|
f9ffd11e7a
|
For tests, rename ASSERT_ALLOC() to TEST_CALLOC_OR_FAIL()
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
|
2023-07-20 16:51:21 +01:00 |
|
Tom Cosgrove
|
65cd8519f7
|
For tests, rename ASSERT_COMPARE() to TEST_BUFFERS_EQUAL()
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
|
2023-07-20 16:51:15 +01:00 |
|
Dave Rodgman
|
ed70fd0c39
|
Merge pull request #5549 from AndrzejKurek/doxygen-bad-param-names
Fix wrong doxygen parameter names and misused `\p` commands
|
2023-07-20 14:10:10 +01:00 |
|
Manuel Pégourié-Gonnard
|
c844c1a771
|
Merge pull request #7546 from mpg/align-psa-md-identifiers
Align psa md identifiers
|
2023-07-20 11:34:28 +02:00 |
|
Ronald Cron
|
7612d8c049
|
all.sh: Use consistently CONFIG_TEST_DRIVER_H
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
|
2023-07-20 10:20:55 +02:00 |
|
Ronald Cron
|
6b49b55d6d
|
all.sh: Use consistently CRYPTO_CONFIG_H
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
|
2023-07-20 10:02:59 +02:00 |
|
Ronald Cron
|
7a93ac5308
|
all.sh: Use consistently CONFIG_H
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
|
2023-07-20 10:02:32 +02:00 |
|
Ronald Cron
|
2b25d36165
|
Fix PSA crypto configuration file name
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
|
2023-07-20 09:09:10 +02:00 |
|
Dave Rodgman
|
7fa27a1a18
|
Merge pull request #7960 from daverodgman/expect-fix
|
2023-07-19 19:48:15 +01:00 |
|
Dave Rodgman
|
e9fcffd089
|
Robustness fix to MBEDTLS_LIKELY
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
|
2023-07-19 15:43:07 +01:00 |
|
Dave Rodgman
|
8e8e6b9be3
|
Merge pull request #7934 from AgathiyanB/move-declarations-to-top
Move declarations to top of functions
|
2023-07-19 15:25:27 +01:00 |
|
Dave Rodgman
|
6dd40642e8
|
Merge pull request #7932 from AgathiyanB/add-mpi-uint-size-macro
Use compile-time determination of which __builtin_clz() to use, with new MBEDTLS_MPI_UINT_SIZE macro
|
2023-07-19 14:57:39 +01:00 |
|
Agathiyan Bragadeesh
|
eed55c6c94
|
Use defined macros for MBEDTLS_MPI_UINT_MAX
Signed-off-by: Agathiyan Bragadeesh <agathiyan.bragadeesh2@arm.com>
|
2023-07-19 11:08:02 +01:00 |
|
Dave Rodgman
|
9e8104cdd9
|
Merge pull request #7949 from AgathiyanB/IAR-asm-keyword
Use correct asm keyword for IAR compilers
|
2023-07-19 10:03:30 +01:00 |
|
Dave Rodgman
|
131a22ef27
|
Merge pull request #7950 from AgathiyanB/fix-IAR-using-memset-s
Fix IAR trying to use memset_s in platform_util
|
2023-07-19 10:01:58 +01:00 |
|
Dave Rodgman
|
5f65acb02b
|
Merge pull request #7859 from gilles-peskine-arm/mbedtls_mpi-smaller
Reduce the size of mbedtls_mpi
|
2023-07-18 16:48:37 +01:00 |
|
Tom Cosgrove
|
46259f670f
|
Internal function mbedtls_mpi_zeroize() can be mbedtls_mpi_zeroize_and_free()
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
|
2023-07-18 16:44:14 +01:00 |
|
Tom Cosgrove
|
3a11bb8213
|
Better wording around passing NULL to mbedtls_zeroize_and_free()
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
|
2023-07-18 16:26:29 +01:00 |
|
Agathiyan Bragadeesh
|
789e50e5a0
|
Use correct asm keyword for IAR compilers
Signed-off-by: Agathiyan Bragadeesh <agathiyan.bragadeesh2@arm.com>
|
2023-07-18 16:12:24 +01:00 |
|
Gilles Peskine
|
24a305ec22
|
Explain why we check 65535 (not USHORT_MAX)
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
|
2023-07-18 13:53:07 +02:00 |
|
Dave Rodgman
|
b8f18850c6
|
Align ECP_MPI_INIT parameter order with mbedtls_mpi struct order
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
|
2023-07-18 13:53:07 +02:00 |
|
Agathiyan Bragadeesh
|
dc28a5a105
|
Rename ASSERT_FALSE to TEST_FAIL
Signed-off-by: Agathiyan Bragadeesh <agathiyan.bragadeesh2@arm.com>
|
2023-07-18 11:45:28 +01:00 |
|
Agathiyan Bragadeesh
|
ebb40bc336
|
Add ASSERT_FALSE macro for tests
Signed-off-by: Agathiyan Bragadeesh <agathiyan.bragadeesh2@arm.com>
|
2023-07-18 11:38:04 +01:00 |
|
Manuel Pégourié-Gonnard
|
fb22c27f1d
|
Misc wording fixes and improvements
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
|
2023-07-18 10:40:56 +02:00 |
|
Manuel Pégourié-Gonnard
|
828b3acd6b
|
Merge pull request #7848 from valeriosetti/issue7749
driver-only ECC: EPCf.TLS testing
|
2023-07-18 10:33:21 +02:00 |
|
Agathiyan Bragadeesh
|
74852038ee
|
Fix IAR trying to use memset_s in platform_util
Signed-off-by: Agathiyan Bragadeesh <agathiyan.bragadeesh2@arm.com>
|
2023-07-17 18:35:30 +01:00 |
|
Agathiyan Bragadeesh
|
2d310deace
|
Add cast in test macros.h
Signed-off-by: Agathiyan Bragadeesh <agathiyan.bragadeesh2@arm.com>
|
2023-07-17 18:27:03 +01:00 |
|