PK: don't use mbedtls_ecp_check_pub_priv()
when USE_PSA
is enabled.
#7387
Labels
mbedtls_ecp_check_pub_priv()
when USE_PSA
is enabled.
#7387
Context: see #6839; this is a step towards ECPa.PK.
Using
mbedtls_ecp_check_pub_priv()
is a dependency on ECP arithmetic which we're trying to avoid. Let's try another approach.For example, now we can call
mbedtls_pk_write_pubkey()
on bothprv
andpub
and compare the results - edit: or we could directly got something more future-proof, see below.Notes for the future:
prv
and directly compare to the bytes array stored inpub
.psa_import()
+psa_export_public()
onprv
and compare to the bytes array stored inpub
.Prototype: #7357
The text was updated successfully, but these errors were encountered: