Improve expected context state for some APIs

Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
Ronald Cron 2021-05-27 09:30:59 +02:00
parent 0cc60f9985
commit 86e6c9f860

View file

@ -400,7 +400,8 @@ int mbedtls_ccm_update_ad( mbedtls_ccm_context *ctx,
* the input buffer. If the buffers overlap, the output buffer
* must trail at least 8 Bytes behind the input buffer.
*
* \param ctx The CCM context. This must be initialized.
* \param ctx The CCM context. This must have been started with
* mbedtls_ccm_starts().
* \param input The buffer holding the input data. If \p input_len
* is greater than zero, this must be a readable buffer
* of at least \p input_len bytes.
@ -435,7 +436,8 @@ int mbedtls_ccm_update( mbedtls_ccm_context *ctx,
*
* \note This function is not implemented in Mbed TLS yet.
*
* \param ctx The CCM context. This must be initialized.
* \param ctx The CCM context. This must have been started with
* mbedtls_ccm_starts().
* \param tag The buffer for holding the tag. If \p tag_len is greater
* than zero, this must be a writable buffer of at least \p
* tag_len Bytes.