]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Comment and indentation fixes.
authorNiels Möller <nisse@lysator.liu.se>
Tue, 18 Oct 2016 21:20:04 +0000 (23:20 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Tue, 18 Oct 2016 21:20:04 +0000 (23:20 +0200)
skein256-internal.c

index 87b5165e02903f4ab808cbb90a196b386c76098a..c0e8709a1cb285c095dd4218f58b38100a8591b4 100644 (file)
    Single round mangling:
 
    w0 += w1;
-   w1 <<<= r_d0; { 46, 33, 17, 44, 39, 13, 25, 8 }
+   w1 <<<= r_d0; { 14, 52, 23,  5, 25, 46, 58, 32 }
    w1 ^= w0
 
    w2 += w3;
-   w3 <<<= r_d1; { 36, 27, 49, 9, 30, 50, 29, 35 }
+   w3 <<<= r_d1; { 16, 57, 40, 37, 33, 12, 22, 32 }
    w3 ^= w2;
 
    Permute, w1 <- w3, w3 <- w1
 */
 
 #define ROUND(w0, w1, w2, w3, c0, c1) do {     \
-    w0 += w1;                                                          \
-    w1 = ROTL64(c0, w1);                                               \
-    w1 ^= w0;                                                          \
-                                                                       \
-    w2 += w3;                                                          \
-    w3 = ROTL64(c1, w3);                                               \
-    w3 ^= w2;                                                          \
+    w0 += w1;                                  \
+    w1 = ROTL64(c0, w1);                       \
+    w1 ^= w0;                                  \
+                                               \
+    w2 += w3;                                  \
+    w3 = ROTL64(c1, w3);                       \
+    w3 ^= w2;                                  \
   } while(0)
 
 void