Open gilles-peskine-arm opened 1 year ago
Now that we've released the last 3.x minor release, all that's left is to remove mbedtls_asn1_write_algorithm_identifier
. We need to adapt the tests to test mbedtls_asn1_write_algorithm_identifier_ext
.
Changing the interface of mbedtls_asn1_write_algorithm_identifier_ext
as described in the issue is an optional improvement which we may do at the same time we adjust the tests.
After https://github.com/Mbed-TLS/mbedtls/pull/7788, we are no longer using
mbedtls_asn1_write_algorithm_identifier
, onlymbedtls_asn1_write_algorithm_identifier_ext
. I think this makes sense in general: the behavior ofmbedtls_asn1_write_algorithm_identifier
is specific to RSA-only code and can't be used by code that supports ECC (or DSA). So I think we should deprecatembedtls_asn1_write_algorithm_identifier
.Note that this means that
mbedtls_asn1_write_algorithm_identifier_ext
should be tested independently ofmbedtls_asn1_write_algorithm_identifier
. This should have been the case anyway, but it currently isn't.Note: I'm not sure if the interface of
mbedtls_asn1_write_algorithm_identifier_ext
really makes sense. We could just require the caller to write the null parameter before calling writing the function, just like the caller has to write any other parameter before calling the function. As I write, we can still change that becausembedtls_asn1_write_algorithm_identifier_ext
was added after the last release, but we have to do it before the 3.5 release or else we're stuck until 4.0.