From e3fe01ca337c144b118d93b6930b6e9ac90864c3 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Thu, 22 Nov 2018 11:02:01 +0100 Subject: Remplacement des #pragma once par des include guards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit La flemme de réfléchir aux problèmes de portabilité. --- crypto_aead/lilliputaei128v1/ref/cipher.h | 5 ++++- crypto_aead/lilliputaei128v1/ref/constants.h | 5 ++++- crypto_aead/lilliputaei128v1/ref/debug.h | 5 ++++- crypto_aead/lilliputaei128v1/ref/parameters.h | 5 ++++- crypto_aead/lilliputaei128v1/ref/test/helpers.h | 5 ++++- crypto_aead/lilliputaei128v1/ref/tweakey.h | 5 ++++- 6 files changed, 24 insertions(+), 6 deletions(-) diff --git a/crypto_aead/lilliputaei128v1/ref/cipher.h b/crypto_aead/lilliputaei128v1/ref/cipher.h index a3d501f..46f01df 100644 --- a/crypto_aead/lilliputaei128v1/ref/cipher.h +++ b/crypto_aead/lilliputaei128v1/ref/cipher.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef CIPHER_H +#define CIPHER_H #include /* debug */ #include @@ -25,3 +26,5 @@ void lilliput_tbc_decrypt( uint8_t message[BLOCK_BYTES], FILE *debug ); + +#endif /* CIPHER_H */ diff --git a/crypto_aead/lilliputaei128v1/ref/constants.h b/crypto_aead/lilliputaei128v1/ref/constants.h index ec1da94..a786023 100644 --- a/crypto_aead/lilliputaei128v1/ref/constants.h +++ b/crypto_aead/lilliputaei128v1/ref/constants.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef CONSTANTS_H +#define CONSTANTS_H #include @@ -11,3 +12,5 @@ extern const uint8_t P[6][256]; /* Lilliput S-box */ extern const uint8_t S[256]; + +#endif /* CONSTANTS_H */ diff --git a/crypto_aead/lilliputaei128v1/ref/debug.h b/crypto_aead/lilliputaei128v1/ref/debug.h index 934a287..87140e5 100644 --- a/crypto_aead/lilliputaei128v1/ref/debug.h +++ b/crypto_aead/lilliputaei128v1/ref/debug.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef DEBUG_H +#define DEBUG_H #include #include @@ -45,3 +46,5 @@ static inline void debug_dump_buffer(FILE *output, const char *header, size_t le } fprintf(output, "\n"); } + +#endif /* DEBUG_H */ diff --git a/crypto_aead/lilliputaei128v1/ref/parameters.h b/crypto_aead/lilliputaei128v1/ref/parameters.h index 5327b59..057a510 100644 --- a/crypto_aead/lilliputaei128v1/ref/parameters.h +++ b/crypto_aead/lilliputaei128v1/ref/parameters.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef PARAMETERS_H +#define PARAMETERS_H #include @@ -14,3 +15,5 @@ #define ROUND_TWEAKEY_BYTES (ROUND_TWEAKEY_LENGTH_BITS/8) #define ROUNDS 32 + +#endif /* PARAMETERS_H */ diff --git a/crypto_aead/lilliputaei128v1/ref/test/helpers.h b/crypto_aead/lilliputaei128v1/ref/test/helpers.h index 96e5184..f4e5208 100644 --- a/crypto_aead/lilliputaei128v1/ref/test/helpers.h +++ b/crypto_aead/lilliputaei128v1/ref/test/helpers.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef HELPERS_H +#define HELPERS_H #include #include @@ -18,3 +19,5 @@ static inline FILE* open_dump_file(const char *folder, const char* vector, const } + +#endif /* HELPERS_H */ diff --git a/crypto_aead/lilliputaei128v1/ref/tweakey.h b/crypto_aead/lilliputaei128v1/ref/tweakey.h index 76e95db..92debf4 100644 --- a/crypto_aead/lilliputaei128v1/ref/tweakey.h +++ b/crypto_aead/lilliputaei128v1/ref/tweakey.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef TWEAKEY_H +#define TWEAKEY_H #include /* debug */ #include @@ -29,3 +30,5 @@ void tweakey_state_extract( ); void tweakey_state_update(tweakey_state *TK); + +#endif /* TWEAKEY_H */ -- cgit v1.2.3