mbedtls/ChangeLog.d
Gilles Peskine 2acbed387d psa_generate_key: remove the bit-size sanity check
In psa_generate_key_internal() for ECC keys, remove the check that the
bit-size according to Mbed TLS is equal to the requested bit-size.
This check was necessary back when the PSA API encoded curves and key
sizes independently, in order to reject combinations such as SECP256R1
with a 512-bit size. Since the curve encoding changed to specifying a
curve family and a size separately, the Mbed TLS curve id (grp_id) and
the curve data (curve_info) are now determined from the size, and
checking that (curve_info->bit_size == bits) is now only a redundant
sanity check.

This check is actually buggy, because PSA Crypto and Mbed TLS don't
have exactly the same notion of key size. PSA thinks Curve25519 is
255-bit and secp224k1 is 225-bit, but Mbed TLS thinks they're 256-bit
and 224-bit respectively. Removing the check allows key generation to
work for these curves.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2020-09-30 22:03:29 +02:00
..
00README.md Add guidance on writing and maintaining changelog entries 2020-03-27 20:14:19 +01:00
add_cipher_transparent_driver.txt Add changelog entry 2020-09-14 16:31:58 +02:00
add_sign_verify_keygen_transparent_driver.txt Added changelog 2020-09-04 14:22:27 +02:00
add-aes-ecb-to-psa.txt Style and language fixes 2020-08-25 12:32:22 +02:00
adjusting sliding_window_size_PR3592.txt adding entry file to ChangeLog.d for PR3592 2020-09-07 13:08:10 +02:00
bugfix_3524.txt fix(programs/psa): commit python3 generated file 2020-09-24 20:57:46 -07:00
bugfix_PR3294.txt Updates to cleanup fixes for #3294 2020-08-24 08:29:39 -07:00
comment_typo_in_mbedtls_ssl_set_bio.txt Update ChangeLog.d/comment_typo_in_mbedtls_ssl_set_bio.txt 2020-08-20 14:31:00 -07:00
ecp_curve_list.txt List Montgomery curves in mbedtls_ecp_curve_list() 2020-09-30 17:02:25 +02:00
fix-typo.txt Minor fixes to changelog 2020-09-10 08:26:39 +08:00
psa_generate_key-curve25519.txt psa_generate_key: remove the bit-size sanity check 2020-09-30 22:03:29 +02:00