New MD API: rename functions from _ext to _ret
The _ext suffix suggests "new arguments", but the new functions have
the same arguments. Use _ret instead, to convey that the difference is
that the new functions return a value.
diff --git a/include/mbedtls/sha512.h b/include/mbedtls/sha512.h
index 7cba3f6..0fadb4c 100644
--- a/include/mbedtls/sha512.h
+++ b/include/mbedtls/sha512.h
@@ -88,7 +88,7 @@
*
* \return 0 if successful
*/
-int mbedtls_sha512_starts_ext( mbedtls_sha512_context *ctx, int is384 );
+int mbedtls_sha512_starts_ret( mbedtls_sha512_context *ctx, int is384 );
/**
* \brief SHA-512 process buffer
@@ -99,7 +99,7 @@
*
* \return 0 if successful
*/
-int mbedtls_sha512_update_ext( mbedtls_sha512_context *ctx,
+int mbedtls_sha512_update_ret( mbedtls_sha512_context *ctx,
const unsigned char *input,
size_t ilen );
@@ -111,7 +111,7 @@
*
* \return 0 if successful
*/
-int mbedtls_sha512_finish_ext( mbedtls_sha512_context *ctx,
+int mbedtls_sha512_finish_ret( mbedtls_sha512_context *ctx,
unsigned char output[64] );
/**
@@ -134,7 +134,7 @@
/**
* \brief SHA-512 context setup
*
- * \deprecated Superseded by mbedtls_sha512_starts_ext() in 2.5.0
+ * \deprecated Superseded by mbedtls_sha512_starts_ret() in 2.5.0
*
* \param ctx context to be initialized
* \param is384 0 = use SHA512, 1 = use SHA384
@@ -143,13 +143,13 @@
mbedtls_sha512_context *ctx,
int is384 )
{
- mbedtls_sha512_starts_ext( ctx, is384 );
+ mbedtls_sha512_starts_ret( ctx, is384 );
}
/**
* \brief SHA-512 process buffer
*
- * \deprecated Superseded by mbedtls_sha512_update_ext() in 2.5.0
+ * \deprecated Superseded by mbedtls_sha512_update_ret() in 2.5.0
*
* \param ctx SHA-512 context
* \param input buffer holding the data
@@ -160,13 +160,13 @@
const unsigned char *input,
size_t ilen )
{
- mbedtls_sha512_update_ext( ctx, input, ilen );
+ mbedtls_sha512_update_ret( ctx, input, ilen );
}
/**
* \brief SHA-512 final digest
*
- * \deprecated Superseded by mbedtls_sha512_finish_ext() in 2.5.0
+ * \deprecated Superseded by mbedtls_sha512_finish_ret() in 2.5.0
*
* \param ctx SHA-512 context
* \param output SHA-384/512 checksum result
@@ -175,7 +175,7 @@
mbedtls_sha512_context *ctx,
unsigned char output[64] )
{
- mbedtls_sha512_finish_ext( ctx, output );
+ mbedtls_sha512_finish_ret( ctx, output );
}
/**
@@ -218,7 +218,7 @@
*
* \return 0 if successful
*/
-int mbedtls_sha512_ext( const unsigned char *input,
+int mbedtls_sha512_ret( const unsigned char *input,
size_t ilen,
unsigned char output[64],
int is384 );
@@ -232,7 +232,7 @@
/**
* \brief Output = SHA-512( input buffer )
*
- * \deprecated Superseded by mbedtls_sha512_ext() in 2.5.0
+ * \deprecated Superseded by mbedtls_sha512_ret() in 2.5.0
*
* \param input buffer holding the data
* \param ilen length of the input data
@@ -245,7 +245,7 @@
unsigned char output[64],
int is384 )
{
- mbedtls_sha512_ext( input, ilen, output, is384 );
+ mbedtls_sha512_ret( input, ilen, output, is384 );
}
#undef MBEDTLS_DEPRECATED