clang format
This commit is contained in:
parent
647b53d880
commit
51f6b063d6
@ -197,7 +197,6 @@ int blake2s_160_init(hash_state *md) { return blake2s_init(md, 20); }
|
||||
|
||||
int blake2s_128_init(hash_state *md) { return blake2s_init(md, 16); }
|
||||
|
||||
|
||||
#define G(r, i, a, b, c, d) \
|
||||
do { \
|
||||
a = a + b + m[blake2s_sigma[r][2 * i + 0]]; \
|
||||
@ -221,7 +220,6 @@ int blake2s_128_init(hash_state *md) { return blake2s_init(md, 16); }
|
||||
G(r, 7, v[3], v[4], v[9], v[14]); \
|
||||
} while (0)
|
||||
|
||||
|
||||
#ifdef LTC_CLEAN_STACK
|
||||
static int _blake2s_compress(hash_state *md, unsigned char *buf)
|
||||
#else
|
||||
@ -247,7 +245,6 @@ static int blake2s_compress(hash_state *md, unsigned char *buf)
|
||||
v[14] = md->blake2s.f[0] ^ blake2s_IV[6];
|
||||
v[15] = md->blake2s.f[1] ^ blake2s_IV[7];
|
||||
|
||||
|
||||
ROUND(0);
|
||||
ROUND(1);
|
||||
ROUND(2);
|
||||
@ -262,13 +259,11 @@ static int blake2s_compress(hash_state *md, unsigned char *buf)
|
||||
for (size_t i = 0; i < 8; ++i)
|
||||
md->blake2s.h[i] = md->blake2s.h[i] ^ v[i] ^ v[i + 8];
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
#undef G
|
||||
#undef ROUND
|
||||
|
||||
|
||||
#ifdef LTC_CLEAN_STACK
|
||||
static int blake2s_compress(hash_state *md, unsigned char *buf)
|
||||
{
|
||||
@ -491,6 +486,4 @@ int blake2s_128_test(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user