X-Git-Url: http://git.droids-corp.org/?p=aversive.git;a=blobdiff_plain;f=modules%2Fcrypto%2Faes%2Faes_core.c;h=c2d3b776cc7e1251aed043cb42aa380d7aa12ad1;hp=d121814a99b5cee160adefec0adf07e81676f6e3;hb=01cf1ccda59340b1d0e65ed61a302692cf7f2ff5;hpb=ccc6954bb046671b9e28c5806db5121c1eef49c0 diff --git a/modules/crypto/aes/aes_core.c b/modules/crypto/aes/aes_core.c index d121814..c2d3b77 100644 --- a/modules/crypto/aes/aes_core.c +++ b/modules/crypto/aes/aes_core.c @@ -42,6 +42,7 @@ # endif #endif #include +#include #include #include "aes_locl.h" @@ -70,7 +71,7 @@ Td4[x] = Si[x].[01, 01, 01, 01]; #ifdef USE_PGMMEM -prog_uint32_t Te0_[256] = { +__attribute__((progmem)) const uint32_t Te0_[256] = { #else static const uint32_t Te0_[256] = { #endif @@ -152,7 +153,7 @@ static inline uint32_t Te0(int i) #endif #ifdef USE_PGMMEM -prog_uint8_t Te4_[256] = { +__attribute__((progmem)) const uint8_t Te4_[256] = { #else static const u8 Te4_[256] = { #endif @@ -234,7 +235,7 @@ static inline u8 Te4(int i) #ifdef USE_PGMMEM -prog_uint32_t Td0_[256] = { +__attribute__((progmem)) const uint32_t Td0_[256] = { #else static const uint32_t Td0_[256] = { #endif @@ -315,7 +316,7 @@ static inline uint32_t Td0(int i) #endif #ifdef USE_PGMMEM -prog_uint8_t Td4_[256] = { +__attribute__((progmem)) const uint8_t Td4_[256] = { #else static const u8 Td4_[256] = { #endif