formatting

This commit is contained in:
Kelvin Sherlock 2017-04-10 11:34:59 -04:00
parent dfbdb626c3
commit ea8dde7f63
2 changed files with 2 additions and 8 deletions

View File

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

View File

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