From c0cad3f5fc6450195749b865d8d97185374c0842 Mon Sep 17 00:00:00 2001 From: Loup Vaillant Date: Mon, 5 Jun 2017 22:53:15 +0200 Subject: [PATCH] cosmetic (OCD) --- src/monocypher.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/monocypher.c b/src/monocypher.c index f8b7511..821c429 100644 --- a/src/monocypher.c +++ b/src/monocypher.c @@ -326,7 +326,6 @@ void crypto_poly1305_auth(u8 mac[16], const u8 *msg, //////////////// /// Blake2 b /// //////////////// - static const u64 iv[8] = { 0x6a09e667f3bcc908, 0xbb67ae8584caa73b, 0x3c6ef372fe94f82b, 0xa54ff53a5f1d36f1, @@ -442,8 +441,8 @@ void crypto_blake2b_update(crypto_blake2b_ctx *ctx, const u8 *in, size_t in_size void crypto_blake2b_final(crypto_blake2b_ctx *ctx, u8 *out) { - incr (ctx); // update the input offset (the last block may not be full) - pad (ctx); // pad the last block with zeroes + incr(ctx); // update the input offset (the last block may not be full) + pad(ctx); // pad the last block with zeroes compress(ctx, 1); // compress the last block FOR (i, 0, ctx->hash_size) { out[i] = (ctx->hash[i / 8] >> (8 * (i & 7))) & 0xff; -- 2.47.3