diff options
author | Marvin W <git@larma.de> | 2020-09-14 21:56:58 +0200 |
---|---|---|
committer | Marvin W <git@larma.de> | 2020-09-14 22:04:06 +0200 |
commit | cd5b639a826ccafe5741a51f10cc8ca76ebfdd14 (patch) | |
tree | f39146eb751f67e99942770c67cf06ca4a912243 /plugins/signal-protocol | |
parent | f6943a4c82ed39b8d6ae866855198596a51dade4 (diff) | |
download | dino-cd5b639a826ccafe5741a51f10cc8ca76ebfdd14.tar.gz dino-cd5b639a826ccafe5741a51f10cc8ca76ebfdd14.zip |
Send OMEMO-encrypted messages and files using 12 byte IV
Diffstat (limited to 'plugins/signal-protocol')
-rw-r--r-- | plugins/signal-protocol/src/signal_helper.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/plugins/signal-protocol/src/signal_helper.c b/plugins/signal-protocol/src/signal_helper.c index 74019410..1a428c44 100644 --- a/plugins/signal-protocol/src/signal_helper.c +++ b/plugins/signal-protocol/src/signal_helper.c @@ -211,8 +211,6 @@ int signal_vala_encrypt(signal_buffer **output, int algo, mode, error_code = SG_ERR_UNKNOWN; if (aes_cipher(cipher, key_len, &algo, &mode)) return SG_ERR_INVAL; - if (iv_len != 16 && iv_len != 12) return SG_ERR_INVAL; - gcry_cipher_hd_t ctx = {0}; if (gcry_cipher_open(&ctx, algo, mode, 0)) return SG_ERR_NOMEM; @@ -294,8 +292,6 @@ int signal_vala_decrypt(signal_buffer **output, if (aes_cipher(cipher, key_len, &algo, &mode)) return SG_ERR_INVAL; if (ciphertext_len == 0) return SG_ERR_INVAL; - if (iv_len != 16 && iv_len != 12) return SG_ERR_INVAL; - gcry_cipher_hd_t ctx = {0}; if (gcry_cipher_open(&ctx, algo, mode, 0)) return SG_ERR_NOMEM; |