Deprecate Mbed TLS cryptography API
The PSA Crypto API should be used instead. The Mbed TLS cryptography API
will still remain available under MBEDTLS_DEPRECATED_REMOVED, as Mbed
Crypto (which implements the PSA Crypto API) continues to rely on this
now internal API.
Functions in that are already considered internal and are not deprecated
by this commit. We already have the freedom to change or remove these
internal APIs.
Document the relationship between Mbed Crypto and Mbed TLS, describing
Mbed Crypto's dual purpose of providing both deprecated Mbed TLS
cryptography APIs and the PSA Crypto API.
diff --git a/include/mbedtls/md2.h b/include/mbedtls/md2.h
index 58c5396..5c2253c 100644
--- a/include/mbedtls/md2.h
+++ b/include/mbedtls/md2.h
@@ -81,6 +81,7 @@
* stronger message digests instead.
*
*/
+MBEDTLS_DEPRECATED
void mbedtls_md2_init( mbedtls_md2_context *ctx );
/**
@@ -93,6 +94,7 @@
* stronger message digests instead.
*
*/
+MBEDTLS_DEPRECATED
void mbedtls_md2_free( mbedtls_md2_context *ctx );
/**
@@ -106,6 +108,7 @@
* stronger message digests instead.
*
*/
+MBEDTLS_DEPRECATED
void mbedtls_md2_clone( mbedtls_md2_context *dst,
const mbedtls_md2_context *src );
@@ -121,6 +124,7 @@
* stronger message digests instead.
*
*/
+MBEDTLS_DEPRECATED
int mbedtls_md2_starts_ret( mbedtls_md2_context *ctx );
/**
@@ -137,6 +141,7 @@
* stronger message digests instead.
*
*/
+MBEDTLS_DEPRECATED
int mbedtls_md2_update_ret( mbedtls_md2_context *ctx,
const unsigned char *input,
size_t ilen );
@@ -154,6 +159,7 @@
* stronger message digests instead.
*
*/
+MBEDTLS_DEPRECATED
int mbedtls_md2_finish_ret( mbedtls_md2_context *ctx,
unsigned char output[16] );
@@ -247,6 +253,7 @@
* stronger message digests instead.
*
*/
+MBEDTLS_DEPRECATED
int mbedtls_md2_ret( const unsigned char *input,
size_t ilen,
unsigned char output[16] );
@@ -283,6 +290,7 @@
* stronger message digests instead.
*
*/
+MBEDTLS_DEPRECATED
int mbedtls_md2_self_test( int verbose );
#endif /* MBEDTLS_SELF_TEST */