aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorJames Morris <jmorris@redhat.com>2004-10-04 22:25:23 -0700
committerDavid S. Miller <davem@nuts.davemloft.net>2004-10-04 22:25:23 -0700
commitbbafa8abb067271768cd871d55cabecce70ac4df (patch)
tree97e94743e7403b2c099f87f5bb1b235f1616b0b0 /crypto
parentbb2f7bea75941865aaed23033c33cdbbbc7d1dfd (diff)
downloadhistory-bbafa8abb067271768cd871d55cabecce70ac4df.tar.gz
[CRYPTO]: Add __init and __initdata to aes.c
This patch from Herbert V. Riedel <hvr@gnu.org> adds __initdata to the generic AES code where appropriate. I also added __init to f_mult(). Signed-off-by: Herbert V. Riedel <hvr@gnu.org> Signed-off-by: James Morris <jmorris@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/aes.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/crypto/aes.c b/crypto/aes.c
index 3a26f9c99aee88..94b89a9c749388 100644
--- a/crypto/aes.c
+++ b/crypto/aes.c
@@ -102,10 +102,10 @@ struct aes_ctx {
#define E_KEY ctx->E
#define D_KEY ctx->D
-static u8 pow_tab[256];
-static u8 log_tab[256];
-static u8 sbx_tab[256];
-static u8 isb_tab[256];
+static u8 pow_tab[256] __initdata;
+static u8 log_tab[256] __initdata;
+static u8 sbx_tab[256] __initdata;
+static u8 isb_tab[256] __initdata;
static u32 rco_tab[10];
static u32 ft_tab[4][256];
static u32 it_tab[4][256];
@@ -113,7 +113,7 @@ static u32 it_tab[4][256];
static u32 fl_tab[4][256];
static u32 il_tab[4][256];
-static inline u8
+static inline u8 __init
f_mult (u8 a, u8 b)
{
u8 aa = log_tab[a], cc = aa + log_tab[b];
@@ -153,7 +153,7 @@ f_mult (u8 a, u8 b)
il_tab[2][byte(bi[(n + 2) & 3],2)] ^ \
il_tab[3][byte(bi[(n + 1) & 3],3)] ^ *(k + n)
-static void
+static void __init
gen_tabs (void)
{
u32 i, t;