Weaken preconditions on mbedtls_[internal_]sha256_process()

This commit is contained in:
Hanno Becker 2018-12-18 23:19:37 +00:00
parent 8d215e7130
commit 3f1f4ad9bd

View file

@ -144,8 +144,7 @@ int mbedtls_sha256_finish_ret( mbedtls_sha256_context *ctx,
* the ongoing SHA-256 computation. This function is for * the ongoing SHA-256 computation. This function is for
* internal use only. * internal use only.
* *
* \param ctx The SHA-256 context. This must be initialized * \param ctx The SHA-256 context. This must be initialized.
* and have a hash operation started.
* \param data The buffer holding one block of data. This must * \param data The buffer holding one block of data. This must
* be a readable buffer of length \c 64 Bytes. * be a readable buffer of length \c 64 Bytes.
* *
@ -211,8 +210,7 @@ MBEDTLS_DEPRECATED void mbedtls_sha256_finish( mbedtls_sha256_context *ctx,
* *
* \deprecated Superseded by mbedtls_internal_sha256_process() in 2.7.0. * \deprecated Superseded by mbedtls_internal_sha256_process() in 2.7.0.
* *
* \param ctx The SHA-256 context. This must be initialized and * \param ctx The SHA-256 context. This must be initialized.
* have a hash operation started.
* \param data The buffer holding one block of data. This must be * \param data The buffer holding one block of data. This must be
* a readable buffer of size \c 64 Bytes. * a readable buffer of size \c 64 Bytes.
*/ */