summaryrefslogtreecommitdiff
path: root/crypto/modes/modes.h
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/modes/modes.h')
-rw-r--r--crypto/modes/modes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/modes/modes.h b/crypto/modes/modes.h
index f18215bb2b25e..7773c2542e5c8 100644
--- a/crypto/modes/modes.h
+++ b/crypto/modes/modes.h
@@ -7,6 +7,9 @@
#include <stddef.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
typedef void (*block128_f)(const unsigned char in[16],
unsigned char out[16],
const void *key);
@@ -133,3 +136,6 @@ typedef struct xts128_context XTS128_CONTEXT;
int CRYPTO_xts128_encrypt(const XTS128_CONTEXT *ctx, const unsigned char iv[16],
const unsigned char *inp, unsigned char *out, size_t len, int enc);
+#ifdef __cplusplus
+}
+#endif