aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/aesni/data.h
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-06-10 17:09:44 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-06-10 17:09:44 +0300
commit3709911c8ddbb3b7e8e1bbb9109784ec6c625a8a (patch)
tree17aeb9f429bc3fb1ebadf38681ef48cd9f6f5829 /include/aesni/data.h
parent/SAFESEH for the asm implementation (diff)
downloadaes-tools-3709911c8ddbb3b7e8e1bbb9109784ec6c625a8a.tar.gz
aes-tools-3709911c8ddbb3b7e8e1bbb9109784ec6c625a8a.zip
add extern "C" {
Diffstat (limited to 'include/aesni/data.h')
-rw-r--r--include/aesni/data.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/aesni/data.h b/include/aesni/data.h
index 73b7f6e..d104f9d 100644
--- a/include/aesni/data.h
+++ b/include/aesni/data.h
@@ -11,6 +11,11 @@
#include <emmintrin.h>
#include <tmmintrin.h>
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
typedef __m128i AesBlock128;
static __inline AesBlock128 load_aes_block128(const unsigned char* src)
@@ -151,3 +156,7 @@ int parse_aes_block256_le(AesBlock256*, const char*);
int parse_aes_block128_be(AesBlock128*, const char*);
int parse_aes_block192_be(AesBlock192*, const char*);
int parse_aes_block256_be(AesBlock256*, const char*);
+
+#ifdef __cplusplus
+}
+#endif