summaryrefslogtreecommitdiffstats
path: root/crypto/aegis.h
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-08-22 16:41:38 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2019-08-30 10:05:30 +0200
commitf1d087b912c61f23685fcfc1bf61dfce517d89f3 (patch)
tree1fb0f43e9776e2ece116974fb2947369657eed83 /crypto/aegis.h
parentcrypto: caam - add clock entry for i.MX8MQ (diff)
downloadlinux-f1d087b912c61f23685fcfc1bf61dfce517d89f3.tar.xz
linux-f1d087b912c61f23685fcfc1bf61dfce517d89f3.zip
crypto: aegis128 - Fix -Wunused-const-variable warning
crypto/aegis.h:27:32: warning: crypto_aegis_const defined but not used [-Wunused-const-variable=] crypto_aegis_const is only used in aegis128-core.c, just move the definition over there. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/aegis.h')
-rw-r--r--crypto/aegis.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/crypto/aegis.h b/crypto/aegis.h
index 4d56a85aea49..6920ebe77679 100644
--- a/crypto/aegis.h
+++ b/crypto/aegis.h
@@ -24,17 +24,6 @@ union aegis_block {
#define AEGIS_BLOCK_ALIGN (__alignof__(union aegis_block))
#define AEGIS_ALIGNED(p) IS_ALIGNED((uintptr_t)p, AEGIS_BLOCK_ALIGN)
-static const union aegis_block crypto_aegis_const[2] = {
- { .words64 = {
- cpu_to_le64(U64_C(0x0d08050302010100)),
- cpu_to_le64(U64_C(0x6279e99059372215)),
- } },
- { .words64 = {
- cpu_to_le64(U64_C(0xf12fc26d55183ddb)),
- cpu_to_le64(U64_C(0xdd28b57342311120)),
- } },
-};
-
static __always_inline void crypto_aegis_block_xor(union aegis_block *dst,
const union aegis_block *src)
{