summaryrefslogtreecommitdiff
path: root/include/my_crypt.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2015-05-27 20:53:16 +0200
committerSergei Golubchik <serg@mariadb.org>2015-06-02 19:00:23 +0200
commit0f0092720f4371556044695fa90a69b5e54a14cf (patch)
tree0f64fa9672541a71bb60fcf3b829f82ef304804e /include/my_crypt.h
parentebc5e00641ea63d91a65921ea827f448064f9a7e (diff)
downloadmariadb-git-0f0092720f4371556044695fa90a69b5e54a14cf.tar.gz
my_aes_encrypt_gcm() and my_aes_decrypt_gcm()
Diffstat (limited to 'include/my_crypt.h')
-rw-r--r--include/my_crypt.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/my_crypt.h b/include/my_crypt.h
index 821b4d2fa8c..3e6da6aa212 100644
--- a/include/my_crypt.h
+++ b/include/my_crypt.h
@@ -47,6 +47,19 @@ int my_aes_encrypt_ctr(const uchar* source, uint source_length,
#endif
+#ifdef HAVE_EncryptAes128Gcm
+
+int my_aes_encrypt_gcm(const uchar* source, uint source_length,
+ uchar* dest, uint* dest_length,
+ const uchar* key, uint key_length,
+ const uchar* iv, uint iv_length);
+
+int my_aes_decrypt_gcm(const uchar* source, uint source_length,
+ uchar* dest, uint* dest_length,
+ const uchar* key, uint key_length,
+ const uchar* iv, uint iv_length);
+#endif
+
int my_aes_encrypt_cbc(const uchar* source, uint source_length,
uchar* dest, uint* dest_length,
const uchar* key, uint key_length,