From cb2c935a54c21290413bf5ff75ce46b7cf715809 Mon Sep 17 00:00:00 2001 From: Jaeden Amero Date: Fri, 8 Jun 2018 10:34:08 +0100 Subject: [PATCH] aes: Clarify IV requirements for OFB mode Combine the two "must be unique" phrases into one for clarity. An IV that is universally unique is also unique for each encryption operation. --- include/mbedtls/aes.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/mbedtls/aes.h b/include/mbedtls/aes.h index de5ffada1f..e48981ab9d 100644 --- a/include/mbedtls/aes.h +++ b/include/mbedtls/aes.h @@ -324,9 +324,9 @@ int mbedtls_aes_crypt_cfb8( mbedtls_aes_context *ctx, * you must either save it manually or use the cipher module * instead. * - * \warning For the OFB mode, the initiallisation vector must be unique and - * must be unique for every encryption operation. Reuse of an - * initialisation vector will compromise security. + * \warning For the OFB mode, the initialisation vector must be unique + * every encryption operation. Reuse of an initialisation vector + * will compromise security. * * \param ctx The AES context to use for encryption or decryption. * \param length The length of the input data.