From 32bdf19a013a9bd05cfad0e6b5abf01567dbf018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 23 May 2024 09:13:21 +0200 Subject: [PATCH] Minor updates in doc/comments/debug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Manuel Pégourié-Gonnard --- docs/driver-only-builds.md | 2 -- library/ssl_tls12_client.c | 2 +- tests/scripts/components-configuration-crypto.sh | 1 + 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/driver-only-builds.md b/docs/driver-only-builds.md index 5d950b068d..6bd92623a1 100644 --- a/docs/driver-only-builds.md +++ b/docs/driver-only-builds.md @@ -408,8 +408,6 @@ Note that the relationship between legacy (i.e. `MBEDTLS_xxx_C`) and PSA ### Partial acceleration for CCM/GCM -[This section depends on #8598 so it might be updated while that PR progresses.] - In case legacy CCM/GCM algorithms are enabled, it is still possible to benefit from PSA acceleration of the underlying block cipher by enabling support for ECB mode (`PSA_WANT_ALG_ECB_NO_PADDING` + `MBEDTLS_PSA_ACCEL_ALG_ECB_NO_PADDING`) diff --git a/library/ssl_tls12_client.c b/library/ssl_tls12_client.c index 9b2da5a39d..75783d08f1 100644 --- a/library/ssl_tls12_client.c +++ b/library/ssl_tls12_client.c @@ -1964,7 +1964,7 @@ static int ssl_write_encrypted_pms(mbedtls_ssl_context *ssl, ssl->out_msg + offset + len_bytes, olen, MBEDTLS_SSL_OUT_CONTENT_LEN - offset - len_bytes, ssl->conf->f_rng, ssl->conf->p_rng)) != 0) { - MBEDTLS_SSL_DEBUG_RET(1, "mbedtls_rsa_pkcs1_encrypt", ret); + MBEDTLS_SSL_DEBUG_RET(1, "mbedtls_pk_encrypt", ret); return ret; } diff --git a/tests/scripts/components-configuration-crypto.sh b/tests/scripts/components-configuration-crypto.sh index da0e180801..fe33d4bc2e 100644 --- a/tests/scripts/components-configuration-crypto.sh +++ b/tests/scripts/components-configuration-crypto.sh @@ -1697,6 +1697,7 @@ config_psa_crypto_accel_rsa () { driver_only=$1 # Start from crypto_full config (no X.509, no TLS) + # Note: PK excluded in analyze_outcomes.py. helper_libtestdriver1_adjust_config "crypto_full" if [ "$driver_only" -eq 1 ]; then