X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=keccak%2Fkeccak.c;h=2c1d9368c0f5f3bc6e8b235853775758902acf68;hp=e7d5279207d434c1b7d170338814f4ffdd099fa0;hb=701cee0d98aab48dd3192c8cc7c77eb42581bc56;hpb=21bfb1fb168b3114f675f34e257b6acc557b2de8 diff --git a/keccak/keccak.c b/keccak/keccak.c index e7d5279..2c1d936 100644 --- a/keccak/keccak.c +++ b/keccak/keccak.c @@ -62,7 +62,7 @@ void keccak_dump_ctx(keccak_ctx_t* ctx){ #endif /* -static uint64_t rc[] PROGMEM = { +const uint64_t rc[] PROGMEM = { 0x0000000000000001LL, 0x0000000000008082LL, 0x800000000000808ALL, 0x8000000080008000LL, 0x000000000000808BLL, 0x0000000080000001LL, @@ -78,7 +78,7 @@ static uint64_t rc[] PROGMEM = { }; */ -static uint8_t rc_comp[] PROGMEM = { +const static uint8_t rc_comp[] PROGMEM = { 0x01, 0x92, 0xda, 0x70, 0x9b, 0x21, 0xf1, 0x59, 0x8a, 0x88, 0x39, 0x2a, @@ -87,7 +87,7 @@ static uint8_t rc_comp[] PROGMEM = { 0xf1, 0xd0, 0x21, 0x78, }; -static uint8_t r[5][5] PROGMEM = { +const static uint8_t r[5][5] PROGMEM = { { ROT_CODE( 0), ROT_CODE(36), ROT_CODE( 3), ROT_CODE(41), ROT_CODE(18) }, { ROT_CODE( 1), ROT_CODE(44), ROT_CODE(10), ROT_CODE(45), ROT_CODE( 2) }, { ROT_CODE(62), ROT_CODE( 6), ROT_CODE(43), ROT_CODE(15), ROT_CODE(61) },