]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - keccak/keccak-stub.c
progress in asm version of keccak (theta now in asm)
[avr-crypto-lib.git] / keccak / keccak-stub.c
index 60cf2d19af227562f9500f59c95ad2aad8dae317..d1eb501d0a7f76a1987225230dc2b904071a1703 100644 (file)
@@ -30,7 +30,7 @@
 #  undef DEBUG
 #endif
 
-#define DEBUG 1
+#define DEBUG 0
 
 #if DEBUG
 #include "cli.h"
@@ -107,20 +107,7 @@ void keccak_round(uint64_t a[5][5], uint8_t rci){
                        uint8_t v8[8];
                } t;
        /* theta */
-#if DEBUG & 0
-    printf_P(PSTR("\npre-theta(1):"));
-    keccak_dump_state(b);
-#endif
        keccak_theta((uint64_t*)a, (uint64_t*)b);
-#if DEBUG
-    printf_P(PSTR("\npost-theta(1):"));
-       keccak_dump_state(b);
-#endif
-       for(i = 0; i < 5; ++i){
-        for(j = 0; j < 5; ++j){
-            a[j][i] ^= rotate64_1bit_left(b[(i + 1) % 5][0]);
-        }
-    }
 #if DEBUG
        cli_putstr_P(PSTR("\r\nAfter theta:"));
        keccak_dump_state(a);