mbedtls/ChangeLog.d
Gilles Peskine 3e56130fb9 psa_raw_key_agreement: return BUFFER_TOO_SMALL when warranted
psa_raw_key_agreement() returned PSA_ERROR_INVALID_ARGUMENT instead of
PSA_ERROR_BUFFER_TOO_SMALL when the output buffer was too small for ECDH,
the only algorithm that is currently implemented. Make it return the correct
error code.

The reason for the wrong error code is that ecdh.c returns
MBEDTLS_ERR_ECP_BAD_INPUT_DATA, presumably for similarith with dhm.c. It
might make sense to change ecdh.c to use MBEDTLS_ERR_ECP_BUFFER_TOO_SMALL,
but dhm.c doesn't have an existing BUFFER_TOO_SMALL error. To minimize the
impact of the fix, handle this in the PSA layer.

Fixes #5735.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2022-05-16 19:37:54 +02:00
..
00README.md 2.24.0 is still covered by the old policy 2020-10-01 00:35:49 +02:00
add-mbedtls_md_starts-to-mbedtls_md_process-test.txt Add ChangeLog entry for fix to mbedtls_md_process() test 2022-03-04 16:48:49 +00:00
add_final_delay_accessor Add changelog entry 2022-03-21 15:27:25 +00:00
add_handshake_completion_accessor Add mbedtls_ssl_is_handshake_over() function 2022-03-22 22:47:49 +00:00
add_own_cid_accessors Add accessor for own cid to ssl context 2022-03-31 19:21:41 +01:00
alert_reentrant.txt Update ChangeLog.d/alert_reentrant.txt 2022-04-08 12:59:30 +01:00
ccm_star_no_tag.txt Declare PSA_WANT_ALG_CCM_STAR_NO_TAG and use it in tests 2022-03-16 13:54:25 +01:00
chacha20_invalid_iv_len_fix.txt Add a changelog entry for the ChaCha20 default behavior change 2022-01-14 16:31:54 +01:00
cmake_msvc_utf8.txt build(msvc): always assume source files are in UTF-8 2022-02-23 23:13:09 +01:00
doc-x509-profile-pk.txt Adapt ChangeLog 2022-04-25 11:17:40 +02:00
Driver_wrapper_codegen_1.0.txt Review comments addressed 2021-12-19 13:37:37 +05:30
dtls-cid-null.txt Add changelog entry for #3998 fix 2022-04-13 16:14:01 +02:00
fix-parllel-cmake-build-fail.txt Update changelog entry 2022-03-11 16:30:20 +08:00
fix-undefined-memcpy-mbedtls_asn1_named_data.txt Add ChangeLog entry 2022-05-04 16:25:53 +01:00
fix-windows-cmake-build-with-shared-libraries.txt Fix shared library link error with cmake on Windows 2022-03-17 12:07:50 +00:00
mbedtls_ecp_export.txt Add function name to changelog 2022-03-28 07:22:11 +02:00
mbedtls_pem_get_der.txt Add accessor to get buf from mbedtls_pem_context 2022-02-08 14:53:46 -05:00
mbedtls_pk_sign_ext.txt Change prototype of pk_sign_ext 2022-03-22 15:13:34 +08:00
mbedtls_sha256_a64_crypto_acceleration.txt SECLIB-667: Accelerate SHA-256 with A64 crypto extensions 2022-02-21 08:37:26 +00:00
mbedtls_sha512_a64_crypto_acceleration.txt SECLIB-667: Accelerate SHA-512 with A64 crypto extensions 2022-03-23 21:40:53 +00:00
mbedtls_ssl_cert_cb.txt Add accessor to retrieve SNI during handshake 2022-02-25 19:55:53 -05:00
mbedtls_ssl_comfig_defaults-memleak.txt Reset dhm_P and dhm_G if config call repeated 2021-12-20 20:24:56 -05:00
mbedtls_ssl_get_ciphersuite_id.txt Add accessors for ciphersuite info 2022-01-13 00:05:48 -05:00
mbedtls_ssl_hs_cb_t.txt Introduce mbedtls_ssl_hs_cb_t typedef 2022-04-07 14:18:30 -04:00
mbedtls_ssl_ticket_rotate.txt Add mbedtls_ssl_ticket_rotate for ticket rotation. 2022-02-09 14:33:15 -05:00
mbedtls_ssl_tls13_client.txt Port ALPN support for tls13 client from tls13-prototype 2022-02-14 08:03:32 -08:00
mbedtls_tlsver_enum.txt Deprecate mbedtls_ssl_conf_(min/max)_version() 2022-04-14 15:40:14 -04:00
MD-X.509-hashing.txt X.509: use PSA for hashing under USE_PSA_CRYPTO 2022-02-08 11:27:42 +01:00
md_info_from_ctx.txt Add ChangeLog entry for md_info getter 2021-12-28 16:53:40 +01:00
mingw.txt Add changelog entry 2022-05-10 13:46:09 +01:00
pkparse-pkcs8-unencrypted-no-alloc.txt mbedtls_pk_parse_key: don't allocate if not needed 2021-12-10 17:36:37 +01:00
PSA-test-suites-NOT-using-UID-0.txt TEST: added psa_its_set expected failure test 2022-02-08 15:19:26 +01:00
psa_aead_singleshot_error.txt Return the same error in multipart and single shot AEAD 2022-01-07 19:36:07 +01:00
psa_crypto_config_file.txt Wording improvement 2022-04-14 12:46:06 +02:00
psa_crypto_key_derivation_for_ECC_keys.txt Add change log entry for psa ECC key derivation 2022-03-11 14:12:34 +01:00
psa_crypto_reduced_configs.txt Add a changelog entry for forced MBEDTLS_PK_WRITE_C 2022-01-19 12:34:48 -05:00
psa_crypto_reduced_configs_bugs.txt Add a changelog entry regarding bugfixes 2022-01-24 10:09:38 -05:00
psa_raw_key_agreement-buffer_too_small.txt psa_raw_key_agreement: return BUFFER_TOO_SMALL when warranted 2022-05-16 19:37:54 +02:00
psk_to_ms_mixed_psk.txt Add change log entry for mixed-psk 2022-04-25 08:52:26 +02:00
raw-agreement-destroy-missing.txt Add missing key destruction calls in ssl_write_client_key_exchange 2022-02-25 04:36:40 -05:00
ssl_context-user_data.txt Make user_data fields private 2022-02-21 15:14:01 +01:00
ssl_context-version_number.txt Minor clarification 2022-02-21 15:14:02 +01:00
ssl_get_version_1_3.txt Fix mbedtls_ssl_get_version() for TLSv1.3 2022-02-21 15:14:01 +01:00
timeless.txt Add a changelog entry 2022-03-04 05:07:45 -05:00
tls13_and_use_psa_crypto.txt Add change log 2022-02-11 16:10:44 +01:00
tls13_f_export_keys.txt Swap the client and server random for TLS 1.3 2022-01-27 06:00:43 -08:00
use-psa-ecdhe-curve.txt Fix missing check on server-chosen curve 2022-02-03 11:08:15 +01:00
zeroize_key_buffers_before_free.txt Add changelog entry for zeroizing key buffers before freeing 2022-02-25 16:53:11 +01:00