Browse Source

resolved name clash (gamma() is also defined elsewhere in the avr-realm)

feature/2015
Christian Kroll 11 years ago
parent
commit
2b0a6b6b76
  1. 4
      src/random/noekeon.c

4
src/random/noekeon.c

@ -39,7 +39,7 @@
#define RC_POS 0 #define RC_POS 0
static static
void gamma(uint32_t* a){ void noekeon_gamma(uint32_t* a){
uint32_t tmp; uint32_t tmp;
a[1] ^= ~((a[3]) | (a[2])); a[1] ^= ~((a[3]) | (a[2]));
@ -94,7 +94,7 @@ void noekeon_round(uint32_t* key, uint32_t* state, uint8_t const1, uint8_t const
theta(key, state); theta(key, state);
((uint8_t*)state)[RC_POS] ^= const2; ((uint8_t*)state)[RC_POS] ^= const2;
pi1(state); pi1(state);
gamma(state); noekeon_gamma(state);
pi2(state); pi2(state);
} }

Loading…
Cancel
Save