Commit 68289c63 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Herbert Xu

crypto: add header include guards

Add header include guards in case they are included multiple times.
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 1c0ab408
...@@ -5,6 +5,9 @@ ...@@ -5,6 +5,9 @@
* Copyright (C) 2015 Linaro Ltd <ard.biesheuvel@linaro.org> * Copyright (C) 2015 Linaro Ltd <ard.biesheuvel@linaro.org>
*/ */
#ifndef _CRYPTO_SHA1_BASE_H
#define _CRYPTO_SHA1_BASE_H
#include <crypto/internal/hash.h> #include <crypto/internal/hash.h>
#include <crypto/sha.h> #include <crypto/sha.h>
#include <linux/crypto.h> #include <linux/crypto.h>
...@@ -101,3 +104,5 @@ static inline int sha1_base_finish(struct shash_desc *desc, u8 *out) ...@@ -101,3 +104,5 @@ static inline int sha1_base_finish(struct shash_desc *desc, u8 *out)
*sctx = (struct sha1_state){}; *sctx = (struct sha1_state){};
return 0; return 0;
} }
#endif /* _CRYPTO_SHA1_BASE_H */
...@@ -5,6 +5,9 @@ ...@@ -5,6 +5,9 @@
* Copyright (C) 2015 Linaro Ltd <ard.biesheuvel@linaro.org> * Copyright (C) 2015 Linaro Ltd <ard.biesheuvel@linaro.org>
*/ */
#ifndef _CRYPTO_SHA256_BASE_H
#define _CRYPTO_SHA256_BASE_H
#include <crypto/internal/hash.h> #include <crypto/internal/hash.h>
#include <crypto/sha.h> #include <crypto/sha.h>
#include <linux/crypto.h> #include <linux/crypto.h>
...@@ -123,3 +126,5 @@ static inline int sha256_base_finish(struct shash_desc *desc, u8 *out) ...@@ -123,3 +126,5 @@ static inline int sha256_base_finish(struct shash_desc *desc, u8 *out)
*sctx = (struct sha256_state){}; *sctx = (struct sha256_state){};
return 0; return 0;
} }
#endif /* _CRYPTO_SHA256_BASE_H */
...@@ -5,6 +5,9 @@ ...@@ -5,6 +5,9 @@
* Copyright (C) 2015 Linaro Ltd <ard.biesheuvel@linaro.org> * Copyright (C) 2015 Linaro Ltd <ard.biesheuvel@linaro.org>
*/ */
#ifndef _CRYPTO_SHA512_BASE_H
#define _CRYPTO_SHA512_BASE_H
#include <crypto/internal/hash.h> #include <crypto/internal/hash.h>
#include <crypto/sha.h> #include <crypto/sha.h>
#include <linux/crypto.h> #include <linux/crypto.h>
...@@ -126,3 +129,5 @@ static inline int sha512_base_finish(struct shash_desc *desc, u8 *out) ...@@ -126,3 +129,5 @@ static inline int sha512_base_finish(struct shash_desc *desc, u8 *out)
*sctx = (struct sha512_state){}; *sctx = (struct sha512_state){};
return 0; return 0;
} }
#endif /* _CRYPTO_SHA512_BASE_H */
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
* Written by Gilad Ben-Yossef <gilad@benyossef.com> * Written by Gilad Ben-Yossef <gilad@benyossef.com>
*/ */
#ifndef _CRYPTO_SM3_BASE_H
#define _CRYPTO_SM3_BASE_H
#include <crypto/internal/hash.h> #include <crypto/internal/hash.h>
#include <crypto/sm3.h> #include <crypto/sm3.h>
#include <linux/crypto.h> #include <linux/crypto.h>
...@@ -104,3 +107,5 @@ static inline int sm3_base_finish(struct shash_desc *desc, u8 *out) ...@@ -104,3 +107,5 @@ static inline int sm3_base_finish(struct shash_desc *desc, u8 *out)
*sctx = (struct sm3_state){}; *sctx = (struct sm3_state){};
return 0; return 0;
} }
#endif /* _CRYPTO_SM3_BASE_H */
...@@ -19,6 +19,9 @@ ...@@ -19,6 +19,9 @@
* 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#ifndef _UAPI_LINUX_CRYPTOUSER_H
#define _UAPI_LINUX_CRYPTOUSER_H
#include <linux/types.h> #include <linux/types.h>
/* Netlink configuration messages. */ /* Netlink configuration messages. */
...@@ -198,3 +201,5 @@ struct crypto_report_acomp { ...@@ -198,3 +201,5 @@ struct crypto_report_acomp {
#define CRYPTO_REPORT_MAXSIZE (sizeof(struct crypto_user_alg) + \ #define CRYPTO_REPORT_MAXSIZE (sizeof(struct crypto_user_alg) + \
sizeof(struct crypto_report_blkcipher)) sizeof(struct crypto_report_blkcipher))
#endif /* _UAPI_LINUX_CRYPTOUSER_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment