mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 04:15:43 +01:00
Leave behaviour on NULL input unspecified in ARIA
We allow a NULL input buffer if the input length is zero, but we don't test it. As long as that's the case, we shouldn't promise to support it.
This commit is contained in:
parent
14b91e8e22
commit
938a15e584
@ -200,10 +200,10 @@ int mbedtls_aria_crypt_ecb( mbedtls_aria_context *ctx,
|
|||||||
* multiple of the block size (16 Bytes).
|
* multiple of the block size (16 Bytes).
|
||||||
* \param iv Initialization vector (updated after use).
|
* \param iv Initialization vector (updated after use).
|
||||||
* This must be a readable buffer of size 16 Bytes.
|
* This must be a readable buffer of size 16 Bytes.
|
||||||
* \param input The buffer holding the input data.
|
* \param input The buffer holding the input data. This must
|
||||||
* This may be \c NULL if `length == 0`.
|
* be a readable buffer of length \p length Bytes.
|
||||||
* \param output The buffer holding the output data.
|
* \param output The buffer holding the output data. This must
|
||||||
* This may be \c NULL if `length == 0`.
|
* be a writable buffer of length \p length Bytes.
|
||||||
*
|
*
|
||||||
* \return \c 0 on success.
|
* \return \c 0 on success.
|
||||||
* \return A negative error code on failure.
|
* \return A negative error code on failure.
|
||||||
@ -250,10 +250,10 @@ int mbedtls_aria_crypt_cbc( mbedtls_aria_context *ctx,
|
|||||||
* This must not be larger than 15.
|
* This must not be larger than 15.
|
||||||
* \param iv The initialization vector (updated after use).
|
* \param iv The initialization vector (updated after use).
|
||||||
* This must be a readable buffer of size 16 Bytes.
|
* This must be a readable buffer of size 16 Bytes.
|
||||||
* \param input The buffer holding the input data.
|
* \param input The buffer holding the input data. This must
|
||||||
* This may be \c NULL if `length == 0`.
|
* be a readable buffer of length \p length Bytes.
|
||||||
* \param output The buffer holding the output data.
|
* \param output The buffer holding the output data. This must
|
||||||
* This may be \c NULL if `length == 0`.
|
* be a writable buffer of length \p length Bytes.
|
||||||
*
|
*
|
||||||
* \return \c 0 on success.
|
* \return \c 0 on success.
|
||||||
* \return A negative error code on failure.
|
* \return A negative error code on failure.
|
||||||
@ -337,10 +337,10 @@ int mbedtls_aria_crypt_cfb128( mbedtls_aria_context *ctx,
|
|||||||
* \param stream_block The saved stream block for resuming. This must
|
* \param stream_block The saved stream block for resuming. This must
|
||||||
* point to a read/write buffer of length \c 16 bytes.
|
* point to a read/write buffer of length \c 16 bytes.
|
||||||
* This is overwritten by the function.
|
* This is overwritten by the function.
|
||||||
* \param input The buffer holding the input data.
|
* \param input The buffer holding the input data. This must
|
||||||
* This may be \c NULL if `length == 0`.
|
* be a readable buffer of length \p length Bytes.
|
||||||
* \param output The buffer holding the output data.
|
* \param output The buffer holding the output data. This must
|
||||||
* This may be \c NULL if `length == 0`.
|
* be a writable buffer of length \p length Bytes.
|
||||||
*
|
*
|
||||||
* \return \c 0 on success.
|
* \return \c 0 on success.
|
||||||
* \return A negative error code on failure.
|
* \return A negative error code on failure.
|
||||||
|
Loading…
Reference in New Issue
Block a user