From a5a2399cb0543d73fb0957c0cce8f1963252165d Mon Sep 17 00:00:00 2001 From: Aaron Erhardt Date: Fri, 22 Oct 2021 22:05:04 +0200 Subject: [PATCH 1/2] Remove mode param from AES-CTR docs Signed-off-by: Aaron Erhardt --- include/mbedtls/aes.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/mbedtls/aes.h b/include/mbedtls/aes.h index becbfae1d9..e381c11838 100644 --- a/include/mbedtls/aes.h +++ b/include/mbedtls/aes.h @@ -511,10 +511,6 @@ int mbedtls_aes_crypt_ofb( mbedtls_aes_context *ctx, * \brief This function performs an AES-CTR encryption or decryption * operation. * - * This function performs the operation defined in the \p mode - * parameter (encrypt/decrypt), on the input data buffer - * defined in the \p input parameter. - * * Due to the nature of CTR, you must use the same key schedule * for both encryption and decryption operations. Therefore, you * must use the context initialized with mbedtls_aes_setkey_enc() From 9bb56dc6bed9a5a4ace7d970aab928a68e7b7668 Mon Sep 17 00:00:00 2001 From: Aaron Erhardt Date: Fri, 22 Oct 2021 22:05:10 +0200 Subject: [PATCH 2/2] Add return info to sha256 docs Signed-off-by: Aaron Erhardt --- include/mbedtls/sha256.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/mbedtls/sha256.h b/include/mbedtls/sha256.h index 9e6f59dc4b..0cbbac11f2 100644 --- a/include/mbedtls/sha256.h +++ b/include/mbedtls/sha256.h @@ -167,6 +167,9 @@ int mbedtls_internal_sha256_process( mbedtls_sha256_context *ctx, * for SHA-256, \c 28 bytes for SHA-224. * \param is224 Determines which function to use. This must be * either \c 0 for SHA-256, or \c 1 for SHA-224. + * + * \return \c 0 on success. + * \return A negative error code on failure. */ int mbedtls_sha256( const unsigned char *input, size_t ilen,