From 0089fbcf0a7bf3ba92fa2ba657c5e7d70e395ed7 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Mon, 17 Feb 2020 14:04:24 +0100 Subject: [PATCH] omemo: switch to 12 byte IV We decrypt both 12 and 16 bytes. And send 12 instead of 16 bytes now. Close https://github.com/profanity-im/profanity/issues/1272 --- src/omemo/crypto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/omemo/crypto.h b/src/omemo/crypto.h index 4bd6258b..d0cfdd05 100644 --- a/src/omemo/crypto.h +++ b/src/omemo/crypto.h @@ -35,7 +35,7 @@ #include #define AES128_GCM_KEY_LENGTH 16 -#define AES128_GCM_IV_LENGTH 16 +#define AES128_GCM_IV_LENGTH 12 #define AES128_GCM_TAG_LENGTH 16 int omemo_crypto_init(void);