Fix updated size macros in documentation
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
parent
4148a68169
commit
9622c9aae0
1 changed files with 44 additions and 24 deletions
|
@ -447,10 +447,18 @@ psa_status_t mbedtls_psa_aead_update_ad(mbedtls_psa_aead_operation_t *operation,
|
||||||
* \param input_length Size of the \p input buffer in bytes.
|
* \param input_length Size of the \p input buffer in bytes.
|
||||||
* \param[out] output Buffer where the output is to be written.
|
* \param[out] output Buffer where the output is to be written.
|
||||||
* \param output_size Size of the \p output buffer in bytes.
|
* \param output_size Size of the \p output buffer in bytes.
|
||||||
* This must be at least
|
* This must be appropriate for the selected
|
||||||
* #PSA_AEAD_UPDATE_OUTPUT_SIZE(\c alg,
|
* algorithm and key:
|
||||||
* \p input_length) where \c alg is the
|
* - A sufficient output size is
|
||||||
* algorithm that is being calculated.
|
* #PSA_AEAD_UPDATE_OUTPUT_SIZE(\c key_type,
|
||||||
|
* \c alg, \p input_length) where
|
||||||
|
* \c key_type is the type of key and \c alg is
|
||||||
|
* the algorithm that were used to set up the
|
||||||
|
* operation.
|
||||||
|
* - #PSA_AEAD_UPDATE_OUTPUT_MAX_SIZE(\p
|
||||||
|
* input_length) evaluates to the maximum
|
||||||
|
* output size of any supported AEAD
|
||||||
|
* algorithm.
|
||||||
* \param[out] output_length On success, the number of bytes
|
* \param[out] output_length On success, the number of bytes
|
||||||
* that make up the returned output.
|
* that make up the returned output.
|
||||||
*
|
*
|
||||||
|
@ -461,9 +469,10 @@ psa_status_t mbedtls_psa_aead_update_ad(mbedtls_psa_aead_operation_t *operation,
|
||||||
* set, and have lengths set if required by the algorithm).
|
* set, and have lengths set if required by the algorithm).
|
||||||
* \retval #PSA_ERROR_BUFFER_TOO_SMALL
|
* \retval #PSA_ERROR_BUFFER_TOO_SMALL
|
||||||
* The size of the \p output buffer is too small.
|
* The size of the \p output buffer is too small.
|
||||||
* You can determine a sufficient buffer size by calling
|
* The size of the \p output buffer is too small.
|
||||||
* #PSA_AEAD_UPDATE_OUTPUT_SIZE(\c alg, \p input_length)
|
* #PSA_AEAD_UPDATE_OUTPUT_SIZE(\c key_type, \c alg, \p input_length) or
|
||||||
* where \c alg is the algorithm that is being calculated.
|
* #PSA_AEAD_UPDATE_OUTPUT_MAX_SIZE(\p input_length) can be used to
|
||||||
|
* determine the required buffer size.
|
||||||
* \retval #PSA_ERROR_INVALID_ARGUMENT
|
* \retval #PSA_ERROR_INVALID_ARGUMENT
|
||||||
* The total length of input to mbedtls_psa_aead_update_ad() so far is
|
* The total length of input to mbedtls_psa_aead_update_ad() so far is
|
||||||
* less than the additional data length that was previously
|
* less than the additional data length that was previously
|
||||||
|
@ -515,10 +524,16 @@ psa_status_t mbedtls_psa_aead_update(mbedtls_psa_aead_operation_t *operation,
|
||||||
* \param[out] ciphertext Buffer where the last part of the ciphertext
|
* \param[out] ciphertext Buffer where the last part of the ciphertext
|
||||||
* is to be written.
|
* is to be written.
|
||||||
* \param ciphertext_size Size of the \p ciphertext buffer in bytes.
|
* \param ciphertext_size Size of the \p ciphertext buffer in bytes.
|
||||||
* This must be at least
|
* This must be appropriate for the selected
|
||||||
* #PSA_AEAD_FINISH_OUTPUT_SIZE(\c alg) where
|
* algorithm and key:
|
||||||
* \c alg is the algorithm that is being
|
* - A sufficient output size is
|
||||||
* calculated.
|
* #PSA_AEAD_FINISH_OUTPUT_SIZE(\c key_type,
|
||||||
|
* \c alg) where \c key_type is the type of key
|
||||||
|
* and \c alg is the algorithm that were used to
|
||||||
|
* set up the operation.
|
||||||
|
* - #PSA_AEAD_FINISH_OUTPUT_MAX_SIZE evaluates to
|
||||||
|
* the maximum output size of any supported AEAD
|
||||||
|
* algorithm.
|
||||||
* \param[out] ciphertext_length On success, the number of bytes of
|
* \param[out] ciphertext_length On success, the number of bytes of
|
||||||
* returned ciphertext.
|
* returned ciphertext.
|
||||||
* \param[out] tag Buffer where the authentication tag is
|
* \param[out] tag Buffer where the authentication tag is
|
||||||
|
@ -545,12 +560,11 @@ psa_status_t mbedtls_psa_aead_update(mbedtls_psa_aead_operation_t *operation,
|
||||||
* operation with a nonce set).
|
* operation with a nonce set).
|
||||||
* \retval #PSA_ERROR_BUFFER_TOO_SMALL
|
* \retval #PSA_ERROR_BUFFER_TOO_SMALL
|
||||||
* The size of the \p ciphertext or \p tag buffer is too small.
|
* The size of the \p ciphertext or \p tag buffer is too small.
|
||||||
* You can determine a sufficient buffer size for \p ciphertext by
|
* #PSA_AEAD_FINISH_OUTPUT_SIZE(\c key_type, \c alg) or
|
||||||
* calling #PSA_AEAD_FINISH_OUTPUT_SIZE(\c alg)
|
* #PSA_AEAD_FINISH_OUTPUT_MAX_SIZE can be used to determine the
|
||||||
* where \c alg is the algorithm that is being calculated.
|
* required \p ciphertext buffer size. #PSA_AEAD_TAG_LENGTH(\c key_type,
|
||||||
* #PSA_AEAD_TAG_LENGTH(\c key_type, \c key_bits, \c alg) or
|
* \c key_bits, \c alg) or #PSA_AEAD_TAG_MAX_SIZE can be used to
|
||||||
* #PSA_AEAD_TAG_MAX_SIZE can be used to determine the required \p tag
|
* determine the required \p tag buffer size.
|
||||||
* buffer size.
|
|
||||||
* \retval #PSA_ERROR_INVALID_ARGUMENT
|
* \retval #PSA_ERROR_INVALID_ARGUMENT
|
||||||
* The total length of input to psa_aead_update_ad() so far is
|
* The total length of input to psa_aead_update_ad() so far is
|
||||||
* less than the additional data length that was previously
|
* less than the additional data length that was previously
|
||||||
|
@ -614,10 +628,16 @@ psa_status_t mbedtls_psa_aead_finish(mbedtls_psa_aead_operation_t *operation,
|
||||||
* that could not be processed until the end
|
* that could not be processed until the end
|
||||||
* of the input.
|
* of the input.
|
||||||
* \param plaintext_size Size of the \p plaintext buffer in bytes.
|
* \param plaintext_size Size of the \p plaintext buffer in bytes.
|
||||||
* This must be at least
|
* This must be appropriate for the selected
|
||||||
* #PSA_AEAD_VERIFY_OUTPUT_SIZE(\c alg) where
|
* algorithm and key:
|
||||||
* \c alg is the algorithm that is being
|
* - A sufficient output size is
|
||||||
* calculated.
|
* #PSA_AEAD_VERIFY_OUTPUT_SIZE(\c key_type,
|
||||||
|
* \c alg) where \c key_type is the type of key
|
||||||
|
* and \c alg is the algorithm that were used to
|
||||||
|
* set up the operation.
|
||||||
|
* - #PSA_AEAD_VERIFY_OUTPUT_MAX_SIZE evaluates to
|
||||||
|
* the maximum output size of any supported AEAD
|
||||||
|
* algorithm.
|
||||||
* \param[out] plaintext_length On success, the number of bytes of
|
* \param[out] plaintext_length On success, the number of bytes of
|
||||||
* returned plaintext.
|
* returned plaintext.
|
||||||
* \param[in] tag Buffer containing the authentication tag.
|
* \param[in] tag Buffer containing the authentication tag.
|
||||||
|
@ -633,9 +653,9 @@ psa_status_t mbedtls_psa_aead_finish(mbedtls_psa_aead_operation_t *operation,
|
||||||
* operation with a nonce set).
|
* operation with a nonce set).
|
||||||
* \retval #PSA_ERROR_BUFFER_TOO_SMALL
|
* \retval #PSA_ERROR_BUFFER_TOO_SMALL
|
||||||
* The size of the \p plaintext buffer is too small.
|
* The size of the \p plaintext buffer is too small.
|
||||||
* You can determine a sufficient buffer size for \p plaintext by
|
* #PSA_AEAD_VERIFY_OUTPUT_SIZE(\c key_type, \c alg) or
|
||||||
* calling #PSA_AEAD_VERIFY_OUTPUT_SIZE(\c alg)
|
* #PSA_AEAD_VERIFY_OUTPUT_MAX_SIZE can be used to determine the
|
||||||
* where \c alg is the algorithm that is being calculated.
|
* required buffer size.
|
||||||
* \retval #PSA_ERROR_INVALID_ARGUMENT
|
* \retval #PSA_ERROR_INVALID_ARGUMENT
|
||||||
* The total length of input to mbedtls_psa_aead_update_ad() so far is
|
* The total length of input to mbedtls_psa_aead_update_ad() so far is
|
||||||
* less than the additional data length that was previously
|
* less than the additional data length that was previously
|
||||||
|
|
Loading…
Reference in a new issue