From d5818a40b023cf5a8207d6c737de5a2e1d2c429f Mon Sep 17 00:00:00 2001 From: "Matthias J. Kannwischer" Date: Tue, 11 Jun 2019 08:09:07 -0500 Subject: [PATCH] change include order; add missing includes (#185) --- crypto_sign/dilithium2/clean/api.h | 1 + crypto_sign/dilithium3/clean/api.h | 1 + crypto_sign/dilithium4/clean/api.h | 1 + test/crypto_kem/functest.c | 5 ++--- test/crypto_sign/functest.c | 5 ++--- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/crypto_sign/dilithium2/clean/api.h b/crypto_sign/dilithium2/clean/api.h index 176824a1..6bba4842 100644 --- a/crypto_sign/dilithium2/clean/api.h +++ b/crypto_sign/dilithium2/clean/api.h @@ -1,6 +1,7 @@ #ifndef PQCLEAN_DILITHIUM2_CLEAN_API_H #define PQCLEAN_DILITHIUM2_CLEAN_API_H +#include #include #define MODE 2 diff --git a/crypto_sign/dilithium3/clean/api.h b/crypto_sign/dilithium3/clean/api.h index 2af3c081..411160d8 100644 --- a/crypto_sign/dilithium3/clean/api.h +++ b/crypto_sign/dilithium3/clean/api.h @@ -1,6 +1,7 @@ #ifndef PQCLEAN_DILITHIUM3_CLEAN_API_H #define PQCLEAN_DILITHIUM3_CLEAN_API_H +#include #include diff --git a/crypto_sign/dilithium4/clean/api.h b/crypto_sign/dilithium4/clean/api.h index 608ccd74..c6dac283 100644 --- a/crypto_sign/dilithium4/clean/api.h +++ b/crypto_sign/dilithium4/clean/api.h @@ -1,6 +1,7 @@ #ifndef PQCLEAN_DILITHIUM4_CLEAN_API_H #define PQCLEAN_DILITHIUM4_CLEAN_API_H +#include #include #define PQCLEAN_DILITHIUM4_CLEAN_CRYPTO_PUBLICKEYBYTES 1760U diff --git a/test/crypto_kem/functest.c b/test/crypto_kem/functest.c index 3b4e7008..16650b21 100644 --- a/test/crypto_kem/functest.c +++ b/test/crypto_kem/functest.c @@ -1,10 +1,9 @@ +#include "api.h" +#include "randombytes.h" #include #include #include -#include "api.h" -#include "randombytes.h" - #ifndef NTESTS #define NTESTS 5 #endif diff --git a/test/crypto_sign/functest.c b/test/crypto_sign/functest.c index bd729194..43d5b7b2 100644 --- a/test/crypto_sign/functest.c +++ b/test/crypto_sign/functest.c @@ -1,11 +1,10 @@ +#include "api.h" +#include "randombytes.h" #include #include #include #include -#include "api.h" -#include "randombytes.h" - #ifndef NTESTS #define NTESTS 5 #endif