aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/aesni/mode.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/aesni/mode.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/aesni/mode.h b/include/aesni/mode.h
index 122b842..831183c 100644
--- a/include/aesni/mode.h
+++ b/include/aesni/mode.h
@@ -10,6 +10,11 @@
#include <assert.h>
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
typedef enum
{
AESNI_ECB,
@@ -152,3 +157,7 @@ static __inline BlockT __fastcall aesni_## prefix ##_decrypt_block_ctr( \
return aesni_## prefix ##_encrypt_block_ctr( \
ciphertext, key, init_vector, next_init_vector); \
}
+
+#ifdef __cplusplus
+}
+#endif