diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-24 04:34:11 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-24 04:34:11 +0300 |
commit | d740ffcd5e356b908159f247715d0d51f6bf1095 (patch) | |
tree | 0c74b6cf380494a964037f65f46ebd2f14a742e2 | |
parent | refactoring (diff) | |
download | aes-tools-d740ffcd5e356b908159f247715d0d51f6bf1095.tar.gz aes-tools-d740ffcd5e356b908159f247715d0d51f6bf1095.zip |
add missing extern "C" {
-rw-r--r-- | include/aesni/algorithm.h | 9 | ||||
-rw-r--r-- | include/aesni/mode.h | 9 | ||||
-rw-r--r-- | include/aesni/padding.h | 9 |
3 files changed, 27 insertions, 0 deletions
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 <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 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 <stdlib.h> +#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 |