X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=noekeon%2Fnoekeon.c;h=0fbdcf9f5da903693887b0a95829cdc040867e37;hb=cd50f65c371296cc88b46f45a609713f96644662;hp=a800d4deeda99b51a892903ecda611a5a576bca5;hpb=924aa320bef6f192feecdb67d209c790bd49ea49;p=avr-crypto-lib.git diff --git a/noekeon/noekeon.c b/noekeon/noekeon.c index a800d4d..0fbdcf9 100644 --- a/noekeon/noekeon.c +++ b/noekeon/noekeon.c @@ -31,7 +31,7 @@ #ifdef __AVR__ #include #endif -#include "noekeon/noekeon.h" +#include "noekeon.h" // #include "cli.h" #define ROUND_NR 16 @@ -39,7 +39,7 @@ #define RC_POS 0 static -void gamma(uint32_t* a){ +void gamma_1(uint32_t* a){ uint32_t tmp; a[1] ^= ~((a[3]) | (a[2])); @@ -94,11 +94,11 @@ void noekeon_round(uint32_t* key, uint32_t* state, uint8_t const1, uint8_t const theta(key, state); ((uint8_t*)state)[RC_POS] ^= const2; pi1(state); - gamma(state); + gamma_1(state); pi2(state); } -uint8_t rc_tab[] +const uint8_t rc_tab[] #ifdef __AVR__ PROGMEM #endif