From d740ffcd5e356b908159f247715d0d51f6bf1095 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 24 Jun 2015 04:34:11 +0300 Subject: add missing extern "C" { --- include/aesni/algorithm.h | 9 +++++++++ include/aesni/mode.h | 9 +++++++++ include/aesni/padding.h | 9 +++++++++ 3 files changed, 27 insertions(+) (limited to 'include') diff --git a/include/aesni/algorithm.h b/include/aesni/algorithm.h index 8aacfdc..a73b412 100644 --- a/include/aesni/algorithm.h +++ b/include/aesni/algorithm.h @@ -8,6 +8,11 @@ #pragma once +#ifdef __cplusplus +extern "C" +{ +#endif + typedef enum { AESNI_AES128, @@ -15,3 +20,7 @@ typedef enum AESNI_AES256, } AesNI_Algorithm; + +#ifdef __cplusplus +} +#endif 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 +#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 diff --git a/include/aesni/padding.h b/include/aesni/padding.h index f76df16..7f19b18 100644 --- a/include/aesni/padding.h +++ b/include/aesni/padding.h @@ -12,6 +12,11 @@ #include +#ifdef __cplusplus +extern "C" +{ +#endif + typedef enum { AESNI_PADDING_PKCS7, @@ -30,3 +35,7 @@ AesNI_StatusCode aesni_fill_with_padding( void* dest, size_t padding_size, AesNI_ErrorDetails*); + +#ifdef __cplusplus +} +#endif -- cgit v1.2.3