Fix errors in psa_wipe_output_buffer() doc comment.

Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
Paul Elliott 2023-02-10 12:58:09 +00:00
parent fe9e77ff7a
commit 6d99f0c265

View File

@ -2684,7 +2684,7 @@ static psa_status_t psa_sign_verify_check_alg(int input_is_message,
} }
/** /**
* \brief Fill the unused part of the output buffer(the * \brief Fill the unused part of the output buffer (the
* whole buffer on error, the trailing part on * whole buffer on error, the trailing part on
* success) with something that isn't a valid * success) with something that isn't a valid
* signature (barring an attack on the signature * signature (barring an attack on the signature
@ -2692,13 +2692,13 @@ static psa_status_t psa_sign_verify_check_alg(int input_is_message,
* caller doesn't check the return status properly. * caller doesn't check the return status properly.
* *
* \param output_buffer pointer to buffer to wipe. May not be NULL * \param output_buffer pointer to buffer to wipe. May not be NULL
* unless /p output_buffer_size is zero. * unless \p output_buffer_size is zero.
* \param status status of function called to generate * \param status status of function called to generate
* output_buffer originally * output_buffer originally
* \param output_buffer_size Size of output buffer. If zero, /p output_buffer * \param output_buffer_size Size of output buffer. If zero, \p output_buffer
* could be NULL * could be NULL
* \param output_buffer_length Length of data written to output_buffer, must be * \param output_buffer_length Length of data written to output_buffer, must be
* less than /p output_buffer_size * less than \p output_buffer_size
*/ */
static void psa_wipe_output_buffer(uint8_t *output_buffer, psa_status_t status, static void psa_wipe_output_buffer(uint8_t *output_buffer, psa_status_t status,
size_t output_buffer_size, size_t output_buffer_length) size_t output_buffer_size, size_t output_buffer_length)