Skip to content

Commit

Permalink
omemo: switch to 12 byte IV
Browse files Browse the repository at this point in the history
We decrypt both 12 and 16 bytes.
And send 12 instead of 16 bytes now.

Close #1272
  • Loading branch information
jubalh committed Feb 17, 2020
1 parent ea5a947 commit 0089fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/omemo/crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0089fbc

Please sign in to comment.