Browse Source

formatting

Kelvin Sherlock 8 years ago
parent
commit
ea8dde7f63
2 changed files with 2 additions and 8 deletions
  1. 1 4
      src/hashes/blake2b.c
  2. 1 4
      src/hashes/blake2s.c

+ 1 - 4
src/hashes/blake2b.c

@@ -153,10 +153,7 @@ static const unsigned char blake2b_sigma[12][16] =
   { 14, 10,  4,  8,  9, 15, 13,  6,  1, 12,  0,  2, 11,  7,  5,  3 }
 };
 
-static void blake2b_set_lastnode(hash_state *md)
-{
-   md->blake2b.f[1] = CONST64(0xffffffffffffffff);
-}
+static void blake2b_set_lastnode(hash_state *md) { md->blake2b.f[1] = CONST64(0xffffffffffffffff); }
 
 /* Some helper functions, not necessarily useful */
 static int blake2b_is_lastblock(const hash_state *md) { return md->blake2b.f[0] != 0; }

+ 1 - 4
src/hashes/blake2s.c

@@ -145,10 +145,7 @@ static const unsigned char blake2s_sigma[10][16] = {
     { 10, 2, 8, 4, 7, 6, 1, 5, 15, 11, 9, 14, 3, 12, 13, 0 },
 };
 
-static void blake2s_set_lastnode(hash_state *md)
-{
-   md->blake2s.f[1] = 0xffffffffUL;
-}
+static void blake2s_set_lastnode(hash_state *md) { md->blake2s.f[1] = 0xffffffffUL; }
 
 /* Some helper functions, not necessarily useful */
 static int blake2s_is_lastblock(const hash_state *md) { return md->blake2s.f[0] != 0; }