1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Remove invalid buffer overflow check

Signed-off-by: gabor-mezei-arm <gabor.mezei@arm.com>
This commit is contained in:
gabor-mezei-arm
2021-06-29 16:39:49 +02:00
parent 9ac4847a5d
commit 6f8d43df20
3 changed files with 1 additions and 33 deletions

View File

@ -223,13 +223,7 @@ psa_status_t mbedtls_psa_cipher_abort( mbedtls_psa_cipher_operation_t *operation
* \c key_type is the type of the key identified
* by \p key and \p alg is the cipher algorithm
* to compute.
* \param[in] output_size Size of the \p output buffer in bytes. The core
* has checked that this size is greater or equal to
* PSA_CIPHER_ENCRYPT_OUTPUT_SIZE( key_type, alg, input_length )
* where \c key_type is the type of the key
* identified by \p key, \p alg is the cipher
* algorithm to compute and \p input_length is the
* size of the \p input buffer.
* \param[in] output_size Size of the \p output buffer in bytes.
* \param[out] output_length On success, the number of bytes that make up
* the returned output. Initialized to zero
* by the core.
@ -279,13 +273,6 @@ psa_status_t mbedtls_psa_cipher_encrypt( const psa_key_attributes_t *attributes,
* \param[in] input_length Size of the \p input buffer in bytes.
* \param[out] output Buffer where the output is to be written.
* \param[in] output_size Size of the \p output buffer in bytes.
* The core has checked that this size is
* greater or equal to
* PSA_CIPHER_DECRYPT_OUTPUT_SIZE( key_type, alg, input_length )
* where \c key_type is the type of the key
* identified by \p key, \p alg is the cipher
* algorithm to compute and \p input_length is the
* size of the \p input buffer.
* \param[out] output_length On success, the number of bytes that make up
* the returned output. Initialized to zero
* by the core.