]> git.cryptolib.org Git - arm-crypto-lib.git/blobdiff - noekeon/noekeon.c
adding Noekeon and XTEA
[arm-crypto-lib.git] / noekeon / noekeon.c
index 0a2649c5a82287e5b1111650af998258dd7d7d94..cbf36a855b1f8c68b3a8d9d41f37644472817943 100644 (file)
@@ -39,7 +39,7 @@
 #define RC_POS 0
 
 static
-void gamma(uint32_t* a){
+void gamma_x(uint32_t* a){
        uint32_t tmp;
        
        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);
        ((uint8_t*)state)[RC_POS] ^= const2;
        pi1(state);
-       gamma(state);
+       gamma_x(state);
        pi2(state);
 }