driver-only ECC: TLS: avoid use of mbedtls_ecp_point_write_binary()
(with USE_PSA
)
#7405
Labels
mbedtls_ecp_point_write_binary()
(with USE_PSA
)
#7405
Context: see #6839. This is a step towards sub-goal ECP.TLS.
Depends on: #7073
Currently TLS uses
mbedtls_ecp_point_write_binary()
in one place: client-side in the 1.2 static ECDH key exchanges, where we have a public key as apk_context
(from the peer's certificate) and want it in the PSA public key export/import format.After #7073, we'll already have a copy of the key in this format inside the
pk_context
, so a simplememcpy()
will do the trick. We can also get other information (ecdh_bits
andecdh_psa_type
fields of the handshake structure) directly from thepk_context
.This task is to remove the call to
mbedtls_ecp_point_write_binary()
and all other ECP functions fromssl_get_ecdh_params_from_cert()
whenMBEDTLS_USE_PSA_CRYPTO
is enabled.The text was updated successfully, but these errors were encountered: