Brace yourself

This commit is contained in:
Frank Denis 2017-12-21 17:24:01 +01:00
parent 3383fd1bdf
commit ffb8475a4a

View File

@ -34,12 +34,12 @@ blake2b_compress_ref(blake2b_state *S, const uint8_t block[BLAKE2B_BLOCKBYTES])
uint64_t v[16]; uint64_t v[16];
int i; int i;
for (i = 0; i < 16; ++i) for (i = 0; i < 16; ++i) {
m[i] = LOAD64_LE(block + i * sizeof(m[i])); m[i] = LOAD64_LE(block + i * sizeof(m[i]));
}
for (i = 0; i < 8; ++i) for (i = 0; i < 8; ++i) {
v[i] = S->h[i]; v[i] = S->h[i];
}
v[8] = blake2b_IV[0]; v[8] = blake2b_IV[0];
v[9] = blake2b_IV[1]; v[9] = blake2b_IV[1];
v[10] = blake2b_IV[2]; v[10] = blake2b_IV[2];