]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - noekeon.c
faster aes decryption
[avr-crypto-lib.git] / noekeon.c
index f5f52994b8e04681cfa96db2d89fc8ab225f696f..8a4c23a8c63e5055cbb1a6608be494e2d736b409 100644 (file)
--- a/noekeon.c
+++ b/noekeon.c
@@ -93,9 +93,9 @@ void noekeon_round(uint32_t* key, uint32_t* state, uint8_t const1, uint8_t const
        ((uint8_t*)state)[RC_POS] ^= const1;
        theta(key, state);
        ((uint8_t*)state)[RC_POS] ^= const2;
+       pi1(state);
        gamma(state);
        pi2(state);
-       pi1(state);
 }
 
 uint8_t rc_tab[]