Skip to content

Commit 1e25ca0

Browse files
Ard Biesheuvelherbertx
authored andcommitted
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>
1 parent 571c47a commit 1e25ca0

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

‎crypto/aes_generic.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ __visible const u32 crypto_ft_tab[4][256] ____cacheline_aligned = {
328328
}
329329
};
330330

331-
__visible const u32 crypto_fl_tab[4][256] ____cacheline_aligned = {
331+
static const u32 crypto_fl_tab[4][256] ____cacheline_aligned = {
332332
{
333333
0x00000063, 0x0000007c, 0x00000077, 0x0000007b,
334334
0x000000f2, 0x0000006b, 0x0000006f, 0x000000c5,
@@ -856,7 +856,7 @@ __visible const u32 crypto_it_tab[4][256] ____cacheline_aligned = {
856856
}
857857
};
858858

859-
__visible const u32 crypto_il_tab[4][256] ____cacheline_aligned = {
859+
static const u32 crypto_il_tab[4][256] ____cacheline_aligned = {
860860
{
861861
0x00000052, 0x00000009, 0x0000006a, 0x000000d5,
862862
0x00000030, 0x00000036, 0x000000a5, 0x00000038,
@@ -1121,9 +1121,7 @@ __visible const u32 crypto_il_tab[4][256] ____cacheline_aligned = {
11211121
};
11221122

11231123
EXPORT_SYMBOL_GPL(crypto_ft_tab);
1124-
EXPORT_SYMBOL_GPL(crypto_fl_tab);
11251124
EXPORT_SYMBOL_GPL(crypto_it_tab);
1126-
EXPORT_SYMBOL_GPL(crypto_il_tab);
11271125

11281126
/**
11291127
* crypto_aes_set_key - Set the AES key.

‎include/crypto/aes.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ struct crypto_aes_ctx {
2929
};
3030

3131
extern const u32 crypto_ft_tab[4][256] ____cacheline_aligned;
32-
extern const u32 crypto_fl_tab[4][256] ____cacheline_aligned;
3332
extern const u32 crypto_it_tab[4][256] ____cacheline_aligned;
34-
extern const u32 crypto_il_tab[4][256] ____cacheline_aligned;
3533

3634
int crypto_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key,
3735
unsigned int key_len);

0 commit comments

Comments
 (0)