about summary refs log tree commit diff stats
path: root/src/omemo/crypto.h
diff options
context:
space:
mode:
authorPaul Fariello <paul@fariello.eu>2019-03-06 21:23:06 +0220
committerPaul Fariello <paul@fariello.eu>2019-04-10 16:31:45 +0200
commitb0c52f84ab419918d4dd0ab1fd3f9755b3687c93 (patch)
tree7858d3ab1323a69d37b32a1408d8476270dcfb09 /src/omemo/crypto.h
parent605e06411ca6d184baf19157620d0473d7c3d557 (diff)
downloadprofani-tty-b0c52f84ab419918d4dd0ab1fd3f9755b3687c93.tar.gz
Follow xep by putting gcm tag on encrypted key
Diffstat (limited to 'src/omemo/crypto.h')
-rw-r--r--src/omemo/crypto.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/omemo/crypto.h b/src/omemo/crypto.h
index 35c5d72a..e4a0a4ad 100644
--- a/src/omemo/crypto.h
+++ b/src/omemo/crypto.h
@@ -137,10 +137,10 @@ int omemo_decrypt_func(signal_buffer **output,
     const uint8_t *ciphertext, size_t ciphertext_len,
     void *user_data);
 
-int aes128gcm_encrypt(unsigned char *ciphertext,
-    size_t *ciphertext_len, const unsigned char *const cleartext,
-    size_t cleatext_len, const unsigned char *const iv,
-    const unsigned char *const key);
+int aes128gcm_encrypt(unsigned char *ciphertext, size_t *ciphertext_len,
+    unsigned char *tag, size_t *tag_len,
+    const unsigned char *const plaintext, size_t plaintext_len,
+    const unsigned char *const iv, const unsigned char *const key);
 
 int aes128gcm_decrypt(unsigned char *plaintext,
     size_t *plaintext_len, const unsigned char *const ciphertext,