Weaken preconditions for mbedtls[_internal]_sha1_process()

This commit is contained in:
Hanno Becker 2018-12-18 23:17:49 +00:00
parent 42f783d3b7
commit 79b9e39732

View File

@ -176,8 +176,7 @@ int mbedtls_sha1_finish_ret( mbedtls_sha1_context *ctx,
* constitutes a security risk. We recommend considering * constitutes a security risk. We recommend considering
* stronger message digests instead. * stronger message digests instead.
* *
* \param ctx The SHA-1 context to use. This must be initialized * \param ctx The SHA-1 context to use. This must be initialized.
* and have a hash operation started.
* \param data The data block being processed. This must be a * \param data The data block being processed. This must be a
* readable buffer of length \c 64 Bytes. * readable buffer of length \c 64 Bytes.
* *
@ -256,8 +255,7 @@ MBEDTLS_DEPRECATED void mbedtls_sha1_finish( mbedtls_sha1_context *ctx,
* *
* \deprecated Superseded by mbedtls_internal_sha1_process() in 2.7.0. * \deprecated Superseded by mbedtls_internal_sha1_process() in 2.7.0.
* *
* \param ctx The SHA-1 context. This must be initialized and * \param ctx The SHA-1 context. This must be initialized.
* have a hash operation started.
* \param data The data block being processed. * \param data The data block being processed.
* This must be a readable buffer of length \c 64 bytes. * This must be a readable buffer of length \c 64 bytes.
* *