summaryrefslogtreecommitdiff
path: root/crypto/aegis128-core.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-08-22 22:41:38 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2019-08-30 18:05:30 +1000
commit355b1364a1ab6f16119ad98edae6af8b86c4d2c2 (patch)
tree8d39f5a43eea1d905b5c21e1caffcb0131f6e4ed /crypto/aegis128-core.c
parent0928d3188ce21d88d1c386c1244a191d7e3670e3 (diff)
downloadlinux-crypto-355b1364a1ab6f16119ad98edae6af8b86c4d2c2.tar.gz
linux-crypto-355b1364a1ab6f16119ad98edae6af8b86c4d2c2.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/aegis128-core.c')
-rw-r--r--crypto/aegis128-core.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/crypto/aegis128-core.c b/crypto/aegis128-core.c
index fa69e999..80e73611 100644
--- a/crypto/aegis128-core.c
+++ b/crypto/aegis128-core.c
@@ -45,6 +45,17 @@ struct aegis128_ops {
static bool have_simd;
+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 bool aegis128_do_simd(void)
{
#ifdef CONFIG_CRYPTO_AEGIS128_SIMD