From b23e31d86ac58d160d1a236da4120d02800740c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Mon, 7 Dec 2020 09:57:35 +0100 Subject: [PATCH] Minor documentation/comment fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit typos, overlong lines Signed-off-by: Manuel Pégourié-Gonnard --- include/mbedtls/cipher.h | 12 ++++++------ tests/suites/test_suite_cipher.function | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/mbedtls/cipher.h b/include/mbedtls/cipher.h index 9ae2f0609..1cafa6ec2 100644 --- a/include/mbedtls/cipher.h +++ b/include/mbedtls/cipher.h @@ -992,9 +992,9 @@ int mbedtls_cipher_auth_decrypt( mbedtls_cipher_context_t *ctx, * \param iv The nonce to use. This must be a readable buffer of * at least \p iv_len Bytes and may be \c NULL if \p * iv_len is \c 0. - * \param iv_len The length of the nonce. For AEAD ciphers, this must satisfy the - * constraints imposed by the cipher used. For NIST_KW, - * this must be \c 0. + * \param iv_len The length of the nonce. For AEAD ciphers, this must + * satisfy the constraints imposed by the cipher used. + * For NIST_KW, this must be \c 0. * \param ad The additional data to authenticate. This must be a * readable buffer of at least \p ad_len Bytes, and may * be \c NULL is \p ad_len is \c 0. @@ -1047,9 +1047,9 @@ int mbedtls_cipher_auth_encrypt_ext( mbedtls_cipher_context_t *ctx, * \param iv The nonce to use. This must be a readable buffer of * at least \p iv_len Bytes and may be \c NULL if \p * iv_len is \c 0. - * \param iv_len The length of the nonce. For AEAD ciphers, this must satisfy the - * constraints imposed by the cipher used. For NIST_KW, - * this must be \c 0. + * \param iv_len The length of the nonce. For AEAD ciphers, this must + * satisfy the constraints imposed by the cipher used. + * For NIST_KW, this must be \c 0. * \param ad The additional data to authenticate. This must be a * readable buffer of at least \p ad_len Bytes, and may * be \c NULL is \p ad_len is \c 0. diff --git a/tests/suites/test_suite_cipher.function b/tests/suites/test_suite_cipher.function index b77d3696f..47a763cc8 100644 --- a/tests/suites/test_suite_cipher.function +++ b/tests/suites/test_suite_cipher.function @@ -1345,7 +1345,7 @@ void auth_crypt_tv( int cipher_id, data_t * key, data_t * iv, * Authenticate and decrypt, and check result */ - /* We can't pass a NULL output buffer to this funciton */ + /* We can't pass a NULL output buffer to this function */ ASSERT_ALLOC( decrypt_buf, cipher->len ? cipher->len : 1 ); outlen = 0; ret = mbedtls_cipher_auth_decrypt( &ctx, iv->x, iv->len, ad->x, ad->len,