aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/aesni/buffer.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/aesni/buffer.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/aesni/buffer.h b/include/aesni/buffer.h
index aa6f5f0..c0a3805 100644
--- a/include/aesni/buffer.h
+++ b/include/aesni/buffer.h
@@ -10,6 +10,11 @@
#include <stdio.h>
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
size_t aes128ecb_encrypt_buffer(
const unsigned char* src,
size_t src_size,
@@ -20,3 +25,7 @@ size_t aes128ecb_decrypt_buffer(
size_t src_size,
unsigned char* dest,
Aes128KeySchedule* inverted_schedule);
+
+#ifdef __cplusplus
+}
+#endif