about summary refs log tree commit diff stats
path: root/src/omemo/crypto.h
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-02-17 14:04:24 +0100
committerMichael Vetter <jubalh@iodoru.org>2020-02-17 14:04:24 +0100
commit0089fbcf0a7bf3ba92fa2ba657c5e7d70e395ed7 (patch)
treec0028714275ae117a82a1b295b04a93277b07a07 /src/omemo/crypto.h
parentea5a947f528a544fd48feacc4f9fd53cff155359 (diff)
downloadprofani-tty-0089fbcf0a7bf3ba92fa2ba657c5e7d70e395ed7.tar.gz
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
Diffstat (limited to 'src/omemo/crypto.h')
-rw-r--r--src/omemo/crypto.h2
1 files changed, 1 insertions, 1 deletions
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 <signal/signal_protocol_types.h>
 
 #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);