From 19e26d42a9d5c8676bbf616ccef1a73eca4eb94e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Nogueira?= Date: Mon, 15 Nov 2021 23:14:48 -0300 Subject: [PATCH] Add comment to cbc-file about IV length. --- cbc-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cbc-file.c b/cbc-file.c index 7620267..c5e2656 100644 --- a/cbc-file.c +++ b/cbc-file.c @@ -26,7 +26,7 @@ #define KEY_LENGTH 32 #define SALT_LENGTH 32 -#define IV_LENGTH 32 +#define IV_LENGTH 32 /* should be 12 bytes, but keep 32 for backwards compat and possible future changes */ #define AAD_LENGTH 32 #define TAG_LENGTH 16 #define FINAL_LENGTH (1 + SALT_LENGTH + IV_LENGTH + AAD_LENGTH + TAG_LENGTH)