Commits

Snake Doctor  committed f8f273f

Misc modification for Keccak base implementation
Modified .gitignore

  • Participants
  • Parent commits b344eba

Comments (0)

Files changed (2)

 
 /.private
-/__history
+/__history
+/*.local
+/*.dcu
+/*.identcache
+/*.exe

File Resources/KeccakReferenceAndOptimized/Sources/KeccakF-1600-reference.c

-/*
+/*
 The Keccak sponge function, designed by Guido Bertoni, Joan Daemen,
 Michaël Peeters and Gilles Van Assche. For more information, feedback or
 questions, please refer to our website: http://keccak.noekeon.org/
             if (LFSR86540(&LFSRstate))
                 KeccakRoundConstants[i] ^= (UINT64)1<<bitPosition;
         }
-    }
+	}
 }
 
 void KeccakInitializeRhoOffsets()
 {
     unsigned int x, y, t, newX, newY;
 
-    KeccakRhoOffsets[index(0, 0)] = 0;
+	KeccakRhoOffsets[index(0, 0)] = 0;
     x = 1;
-    y = 0;
-    for(t=0; t<24; t++) {
+	y = 0;
+	for(t=0; t<24; t++) {
         KeccakRhoOffsets[index(x, y)] = ((t+1)*(t+2)/2) % 64;
         newX = (0*x+1*y) % 5;
-        newY = (2*x+3*y) % 5;
+		newY = (2*x+3*y) % 5;
         x = newX;
-        y = newY;
+		y = newY;
     }
 }
 
 void KeccakInitialize()
 {
-    KeccakInitializeRoundConstants();
-    KeccakInitializeRhoOffsets();
+	KeccakInitializeRoundConstants();
+	KeccakInitializeRhoOffsets();
 }
 
 void displayRoundConstants(FILE *f)
 
 void KeccakInitializeState(unsigned char *state)
 {
-    memset(state, 0, KeccakPermutationSizeInBytes);
+	memset(state, 0, KeccakPermutationSizeInBytes);
 }
 
 #ifdef ProvideFast576