summaryrefslogtreecommitdiff
path: root/crypto/aes_generic.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2019-07-02 21:41:45 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2019-07-26 14:58:35 +1000
commit23013696179de41a1f86a99288bcb19460be82d4 (patch)
treec13e645b752ecb8be472f7d7e613962a3841b1a6 /crypto/aes_generic.c
parent7f35cf68eb9f1ab4210b622dad2779a91a98dc44 (diff)
downloadlinux-crypto-23013696179de41a1f86a99288bcb19460be82d4.tar.gz
linux-crypto-23013696179de41a1f86a99288bcb19460be82d4.zip
crypto: aes-generic - unexport last-round AES tables
The versions of the AES lookup tables that are only used during the last round are never used outside of the driver, so there is no need to export their symbols. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--crypto/aes_generic.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/aes_generic.c b/crypto/aes_generic.c
index 426deb43..71a5c190 100644
--- a/crypto/aes_generic.c
+++ b/crypto/aes_generic.c
@@ -328,7 +328,7 @@ __visible const u32 crypto_ft_tab[4][256] ____cacheline_aligned = {
}
};
-__visible const u32 crypto_fl_tab[4][256] ____cacheline_aligned = {
+static const u32 crypto_fl_tab[4][256] ____cacheline_aligned = {
{
0x00000063, 0x0000007c, 0x00000077, 0x0000007b,
0x000000f2, 0x0000006b, 0x0000006f, 0x000000c5,
@@ -856,7 +856,7 @@ __visible const u32 crypto_it_tab[4][256] ____cacheline_aligned = {
}
};
-__visible const u32 crypto_il_tab[4][256] ____cacheline_aligned = {
+static const u32 crypto_il_tab[4][256] ____cacheline_aligned = {
{
0x00000052, 0x00000009, 0x0000006a, 0x000000d5,
0x00000030, 0x00000036, 0x000000a5, 0x00000038,
@@ -1121,9 +1121,7 @@ __visible const u32 crypto_il_tab[4][256] ____cacheline_aligned = {
};
EXPORT_SYMBOL_GPL(crypto_ft_tab);
-EXPORT_SYMBOL_GPL(crypto_fl_tab);
EXPORT_SYMBOL_GPL(crypto_it_tab);
-EXPORT_SYMBOL_GPL(crypto_il_tab);
/**
* crypto_aes_set_key - Set the AES key.