mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 23:25:44 +01:00
Don't promise that passing NULL input to Camellia works
This commit is contained in:
parent
c7579ecb17
commit
bdb7cd4840
@ -165,11 +165,9 @@ int mbedtls_camellia_crypt_ecb( mbedtls_camellia_context *ctx,
|
|||||||
* of length \c 16 Bytes. It is updated to allow streaming
|
* of length \c 16 Bytes. It is updated to allow streaming
|
||||||
* use as explained above.
|
* use as explained above.
|
||||||
* \param input The buffer holding the input data. This must point to a
|
* \param input The buffer holding the input data. This must point to a
|
||||||
* readable buffer of length \p length Bytes. This may be
|
* readable buffer of length \p length Bytes.
|
||||||
* \c NULL if `length == 0`.
|
|
||||||
* \param output The buffer holding the output data. This must point to a
|
* \param output The buffer holding the output data. This must point to a
|
||||||
* writable buffer of length \p length Bytes. This may be
|
* writable buffer of length \p length Bytes.
|
||||||
* \c NULL if `length == 0`.
|
|
||||||
*
|
*
|
||||||
* \return \c 0 if successful.
|
* \return \c 0 if successful.
|
||||||
* \return A negative error code on failure.
|
* \return A negative error code on failure.
|
||||||
@ -212,11 +210,9 @@ int mbedtls_camellia_crypt_cbc( mbedtls_camellia_context *ctx,
|
|||||||
* of length \c 16 Bytes. It is updated after this call to
|
* of length \c 16 Bytes. It is updated after this call to
|
||||||
* allow the aforementioned streaming usage.
|
* allow the aforementioned streaming usage.
|
||||||
* \param input The buffer holding the input data. This must be a readable
|
* \param input The buffer holding the input data. This must be a readable
|
||||||
* buffer of size \p length Bytes. This may be \c NULL if
|
* buffer of size \p length Bytes.
|
||||||
* \p length is \c 0.
|
|
||||||
* \param output The buffer to hold the output data. This must be a writable
|
* \param output The buffer to hold the output data. This must be a writable
|
||||||
* buffer of length \p length Bytes. This may be \c NULL if
|
* buffer of length \p length Bytes.
|
||||||
* \p length is \c 0.
|
|
||||||
*
|
*
|
||||||
* \return \c 0 if successful.
|
* \return \c 0 if successful.
|
||||||
* \return A negative error code on failure.
|
* \return A negative error code on failure.
|
||||||
@ -297,11 +293,9 @@ int mbedtls_camellia_crypt_cfb128( mbedtls_camellia_context *ctx,
|
|||||||
* \param stream_block The saved stream-block for resuming. This must be a
|
* \param stream_block The saved stream-block for resuming. This must be a
|
||||||
* read/write buffer of length \c 16 Bytes.
|
* read/write buffer of length \c 16 Bytes.
|
||||||
* \param input The input data stream. This must be a readable buffer of
|
* \param input The input data stream. This must be a readable buffer of
|
||||||
* size \p length Bytes. This may be \c NULL if \p length
|
* size \p length Bytes.
|
||||||
* is \c 0.
|
|
||||||
* \param output The output data stream. This must be a writable buffer
|
* \param output The output data stream. This must be a writable buffer
|
||||||
* of size \p length Bytes. This may be \c NULL if
|
* of size \p length Bytes.
|
||||||
* \p length is \c 0.
|
|
||||||
*
|
*
|
||||||
* \return \c 0 if successful.
|
* \return \c 0 if successful.
|
||||||
* \return A negative error code on failure.
|
* \return A negative error code on failure.
|
||||||
|
Loading…
Reference in New Issue
Block a user