From 6763e342cdba59ecac6c1462be01207d4ad56cd1 Mon Sep 17 00:00:00 2001 From: David McCullough Date: Wed, 15 Mar 2006 21:08:51 +1100 Subject: [PATCH] --- yaml --- r: 22342 b: refs/heads/master c: 55e9dce37ddf3ab358ba1d1e9eef4ee4bd8174a6 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/x86_64/crypto/aes.c | 7 +++---- trunk/crypto/aes.c | 7 +++---- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/[refs] b/[refs] index 54b74848b7ab..474044c09e3b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 06b42aa94b65806b4f8c5fc893ef97a2f491fb32 +refs/heads/master: 55e9dce37ddf3ab358ba1d1e9eef4ee4bd8174a6 diff --git a/trunk/arch/x86_64/crypto/aes.c b/trunk/arch/x86_64/crypto/aes.c index fb1b961a2e2f..6f77e7700d32 100644 --- a/trunk/arch/x86_64/crypto/aes.c +++ b/trunk/arch/x86_64/crypto/aes.c @@ -77,12 +77,11 @@ static inline u8 byte(const u32 x, const unsigned n) struct aes_ctx { u32 key_length; - u32 E[60]; - u32 D[60]; + u32 buf[120]; }; -#define E_KEY ctx->E -#define D_KEY ctx->D +#define E_KEY (&ctx->buf[0]) +#define D_KEY (&ctx->buf[60]) static u8 pow_tab[256] __initdata; static u8 log_tab[256] __initdata; diff --git a/trunk/crypto/aes.c b/trunk/crypto/aes.c index 0a6a5c143686..a5017292e066 100644 --- a/trunk/crypto/aes.c +++ b/trunk/crypto/aes.c @@ -75,12 +75,11 @@ byte(const u32 x, const unsigned n) struct aes_ctx { int key_length; - u32 E[60]; - u32 D[60]; + u32 buf[120]; }; -#define E_KEY ctx->E -#define D_KEY ctx->D +#define E_KEY (&ctx->buf[0]) +#define D_KEY (&ctx->buf[60]) static u8 pow_tab[256] __initdata; static u8 log_tab[256] __initdata;