From ffb8475a4a1be764422e5f61c38f100accb3c5a5 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 21 Dec 2017 17:24:01 +0100 Subject: [PATCH] Brace yourself --- .../crypto_generichash/blake2b/ref/blake2b-compress-ref.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libsodium/crypto_generichash/blake2b/ref/blake2b-compress-ref.c b/src/libsodium/crypto_generichash/blake2b/ref/blake2b-compress-ref.c index 614fa34a..b0422c93 100644 --- a/src/libsodium/crypto_generichash/blake2b/ref/blake2b-compress-ref.c +++ b/src/libsodium/crypto_generichash/blake2b/ref/blake2b-compress-ref.c @@ -34,12 +34,12 @@ blake2b_compress_ref(blake2b_state *S, const uint8_t block[BLAKE2B_BLOCKBYTES]) uint64_t v[16]; int i; - for (i = 0; i < 16; ++i) + for (i = 0; i < 16; ++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[8] = blake2b_IV[0]; v[9] = blake2b_IV[1]; v[10] = blake2b_IV[2];