]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - keccak/keccak.c
clean up
[avr-crypto-lib.git] / keccak / keccak.c
index 809f21901ee17c5c13ac36e45ea980cb6217b01b..3b43a5fed43240933cb908ca74c97d3132286216 100644 (file)
@@ -21,7 +21,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <avr/pgmspace.h>
-#include "memxor.h"
+#include "memxor/memxor.h"
 #include "rotate64.h"
 #include "keccak.h"
 
@@ -87,10 +87,6 @@ static uint8_t rc_comp[] PROGMEM = {
                0xf1, 0xd0, 0x21, 0x78,
 };
 
-uint64_t rotl64(uint64_t a, uint8_t r){
-        return (a<<r)|(a>>(64-r));
-}
-
 static uint8_t r[5][5] PROGMEM = {
                { ROT_CODE( 0), ROT_CODE(36), ROT_CODE( 3), ROT_CODE(41), ROT_CODE(18) },
                { ROT_CODE( 1), ROT_CODE(44), ROT_CODE(10), ROT_CODE(45), ROT_CODE( 2) },