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
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
3388c4acee
library: debug: add support for RSA keys in PSA friendly format
...
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no >
2025-06-25 10:25:02 +02:00
Valerio Setti
c394fd0ebc
library: debug: replace MBEDTLS_PK_USE_PSA_EC_DATA with PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY
...
MBEDTLS_PK_USE_PSA_EC_DATA is a legacy symbol that is used in 3.6 LTS
branch, but now it is assumed to be always true. It's only kept for
legacy reasons so it's better to replace it with
PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY instead.
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no >
2025-06-12 06:35:45 +02:00
Valerio Setti
ffac311aaf
library: debug: fix guards for EC helper functions
...
Move mbedtls_debug_print_ecp(), mbedtls_debug_print_ec_coord() and
mbedtls_debug_print_psa_ec() under the same guards as debug_print_pk().
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no >
2025-05-27 09:58:02 +02:00
Valerio Setti
199a15645d
library: debug: make mbedtls_debug_print_ecp() internal
...
Remove the public definition of mbedtls_debug_print_ecp(). The function
is only used internally in debug.c, so we can then make the function
static.
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no >
2025-05-27 09:56:27 +02:00
Valerio Setti
153a906a51
library: debug: remove mbedtls_debug_printf_ecdh()
...
The function is not used anywhere and can be removed.
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no >
2025-05-23 15:08:48 +02:00
Valerio Setti
28ef01a3c1
library: debug: make mbedtls_debug_print_psa_ec() static
...
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no >
2025-05-23 15:03:26 +02:00
Harry Ramsey
e8e23fb519
Include ssl_misc.h for additional SSL helper files
...
This commit replaces #include "common.h" in favour of #include
"ssl_misc.h".
Signed-off-by: Harry Ramsey <harry.ramsey@arm.com >
2024-10-11 12:21:30 +01:00
Valerio Setti
b4f5076270
debug: move internal functions declarations to an internal header file
...
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no >
2024-01-18 15:30:46 +01:00
Dave Rodgman
e4a6f5a7ec
Use size_t cast for pointer subtractions
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2023-11-21 17:09:46 +00:00
Dave Rodgman
16799db69a
update headers
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2023-11-02 19:47:20 +00:00
Manuel Pégourié-Gonnard
d170419eab
Merge pull request #7999 from valeriosetti/issue7759
...
Driver-only ECC: TLS: rm uses of mbedtls_debug_print_mpi
2023-08-10 08:34:57 +00:00
Valerio Setti
ca4c15dd25
debug: remove redundant variable assignments
...
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no >
2023-08-10 06:41:31 +02:00
Valerio Setti
c1319f4a26
debug: improve debug_print_psa_ec() as not to depend on bignum
...
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no >
2023-07-28 13:44:51 +02:00
Valerio Setti
797e396fd9
debug: use proper guard for PK_DEBUG_MPI items
...
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no >
2023-07-28 13:44:26 +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
b302efc8d9
debug: replace ECDH_C symbol with key exchange one
...
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no >
2023-07-07 17:23:53 +02:00
Manuel Pégourié-Gonnard
9dc9204b77
Merge pull request #7554 from valeriosetti/issue7073-reshape
...
Avoid parse/unparse public ECC keys in PK with USE_PSA when !ECP_C
2023-05-23 15:08:45 +02:00
Valerio Setti
c1541cb3c7
pk: minor fixes (guards and a wrong assignment)
...
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no >
2023-05-17 19:23:02 +02:00
Valerio Setti
7ca7b90bc7
debug: add support for printing the new EC raw format
...
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no >
2023-05-17 15:35:46 +02:00