diff --git a/include/mbedtls/aria.h b/include/mbedtls/aria.h
index ab6e8e5d3..61987507f 100644
--- a/include/mbedtls/aria.h
+++ b/include/mbedtls/aria.h
@@ -111,7 +111,7 @@ void mbedtls_aria_free( mbedtls_aria_context *ctx );
*
192 bits
* 256 bits
*
- * \return \c 0 on success or #MBEDTLS_ERR_ARIA_INVALID_KEY_LENGTH
+ * \return \c 0 on success or #MBEDTLS_ERR_ARIA_BAD_INPUT_DATA
* on failure.
*/
int mbedtls_aria_setkey_enc( mbedtls_aria_context *ctx,
@@ -128,7 +128,7 @@ int mbedtls_aria_setkey_enc( mbedtls_aria_context *ctx,
* 192 bits
* 256 bits
*
- * \return \c 0 on success, or #MBEDTLS_ERR_ARIA_INVALID_KEY_LENGTH on failure.
+ * \return \c 0 on success, or #MBEDTLS_ERR_ARIA_BAD_INPUT_DATA on failure.
*/
int mbedtls_aria_setkey_dec( mbedtls_aria_context *ctx,
const unsigned char *key,
@@ -190,7 +190,7 @@ int mbedtls_aria_crypt_ecb( mbedtls_aria_context *ctx,
* \param input The buffer holding the input data.
* \param output The buffer holding the output data.
*
- * \return \c 0 on success, or #MBEDTLS_ERR_ARIA_INVALID_INPUT_LENGTH
+ * \return \c 0 on success, or #MBEDTLS_ERR_ARIA_BAD_INPUT_DATA
* on failure.
*/
int mbedtls_aria_crypt_cbc( mbedtls_aria_context *ctx,
diff --git a/include/mbedtls/blowfish.h b/include/mbedtls/blowfish.h
index 0f192aa3a..6062cd0b4 100644
--- a/include/mbedtls/blowfish.h
+++ b/include/mbedtls/blowfish.h
@@ -95,7 +95,7 @@ void mbedtls_blowfish_free( mbedtls_blowfish_context *ctx );
* \param key encryption key
* \param keybits must be between 32 and 448 bits
*
- * \return 0 if successful, or MBEDTLS_ERR_BLOWFISH_INVALID_KEY_LENGTH
+ * \return 0 if successful, or MBEDTLS_ERR_BLOWFISH_BAD_INPUT_DATA
*/
int mbedtls_blowfish_setkey( mbedtls_blowfish_context *ctx, const unsigned char *key,
unsigned int keybits );
@@ -137,7 +137,7 @@ int mbedtls_blowfish_crypt_ecb( mbedtls_blowfish_context *ctx,
* \param output buffer holding the output data
*
* \return 0 if successful, or
- * MBEDTLS_ERR_BLOWFISH_INVALID_INPUT_LENGTH
+ * MBEDTLS_ERR_BLOWFISH_BAD_INPUT_DATA
*/
int mbedtls_blowfish_crypt_cbc( mbedtls_blowfish_context *ctx,
int mode,
diff --git a/include/mbedtls/camellia.h b/include/mbedtls/camellia.h
index af3ef8868..93987bf70 100644
--- a/include/mbedtls/camellia.h
+++ b/include/mbedtls/camellia.h
@@ -91,7 +91,7 @@ void mbedtls_camellia_free( mbedtls_camellia_context *ctx );
* \param key encryption key
* \param keybits must be 128, 192 or 256
*
- * \return 0 if successful, or MBEDTLS_ERR_CAMELLIA_INVALID_KEY_LENGTH
+ * \return 0 if successful, or MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA
*/
int mbedtls_camellia_setkey_enc( mbedtls_camellia_context *ctx, const unsigned char *key,
unsigned int keybits );
@@ -103,7 +103,7 @@ int mbedtls_camellia_setkey_enc( mbedtls_camellia_context *ctx, const unsigned c
* \param key decryption key
* \param keybits must be 128, 192 or 256
*
- * \return 0 if successful, or MBEDTLS_ERR_CAMELLIA_INVALID_KEY_LENGTH
+ * \return 0 if successful, or MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA
*/
int mbedtls_camellia_setkey_dec( mbedtls_camellia_context *ctx, const unsigned char *key,
unsigned int keybits );
@@ -145,7 +145,7 @@ int mbedtls_camellia_crypt_ecb( mbedtls_camellia_context *ctx,
* \param output buffer holding the output data
*
* \return 0 if successful, or
- * MBEDTLS_ERR_CAMELLIA_INVALID_INPUT_LENGTH
+ * MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA
*/
int mbedtls_camellia_crypt_cbc( mbedtls_camellia_context *ctx,
int mode,
@@ -180,7 +180,7 @@ int mbedtls_camellia_crypt_cbc( mbedtls_camellia_context *ctx,
* \param output buffer holding the output data
*
* \return 0 if successful, or
- * MBEDTLS_ERR_CAMELLIA_INVALID_INPUT_LENGTH
+ * MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA.
*/
int mbedtls_camellia_crypt_cfb128( mbedtls_camellia_context *ctx,
int mode,