X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=crypto%2Faes%2Faes_core.c;h=1e155a31917c8afa7da5be34a261c57c62c2c0cf;hp=29e41edd10bc3209d19324a60ccb504b341b0d02;hb=25558bf7434525099254126119841edbaa155305;hpb=859ceeeb5174ce50842112c05230cebb59702e83 diff --git a/crypto/aes/aes_core.c b/crypto/aes/aes_core.c index 29e41edd10..1e155a3191 100644 --- a/crypto/aes/aes_core.c +++ b/crypto/aes/aes_core.c @@ -53,6 +53,20 @@ Td3[x] = Si[x].[09, 0d, 0b, 0e]; Td4[x] = Si[x].[01, 01, 01, 01]; */ +#ifdef AES_ASM +extern const u32 AES_Te[5][256]; +#define Te0 AES_Te[0] +#define Te1 AES_Te[1] +#define Te2 AES_Te[2] +#define Te3 AES_Te[3] +#define Te4 AES_Te[4] +extern const u32 AES_Td[5][256]; +#define Td0 AES_Td[0] +#define Td1 AES_Td[1] +#define Td2 AES_Td[2] +#define Td3 AES_Td[3] +#define Td4 AES_Td[4] +#else static const u32 Te0[256] = { 0xc66363a5U, 0xf87c7c84U, 0xee777799U, 0xf67b7b8dU, 0xfff2f20dU, 0xd66b6bbdU, 0xde6f6fb1U, 0x91c5c554U, @@ -715,6 +729,7 @@ static const u32 Td4[256] = { 0xe1e1e1e1U, 0x69696969U, 0x14141414U, 0x63636363U, 0x55555555U, 0x21212121U, 0x0c0c0c0cU, 0x7d7d7d7dU, }; +#endif static const u32 rcon[] = { 0x01000000, 0x02000000, 0x04000000, 0x08000000, 0x10000000, 0x20000000, 0x40000000, 0x80000000,