From 0f0092720f4371556044695fa90a69b5e54a14cf Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Wed, 27 May 2015 20:53:16 +0200 Subject: my_aes_encrypt_gcm() and my_aes_decrypt_gcm() --- include/my_crypt.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include/my_crypt.h') 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, -- cgit v1.2.1