From: Loup Vaillant Date: Thu, 20 Jul 2017 12:52:54 +0000 (+0200) Subject: spelling X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=3af113688c7cf16818fa81ad43e224a92791adcc;p=Monocypher.git spelling --- diff --git a/src/sha512.c b/src/sha512.c index d1454a4..a1cff09 100644 --- a/src/sha512.c +++ b/src/sha512.c @@ -136,8 +136,8 @@ void crypto_sha512_update(crypto_sha512_ctx *ctx, const u8 *in, size_t inlen) end_block(ctx); // Main processing by 8 byte chunks (much faster) - size_t nb_words = inlen / 8; - size_t reminder = inlen % 8; + size_t nb_words = inlen / 8; + size_t remainder = inlen % 8; FOR (i, 0, nb_words) { ctx->m[ctx->m_index / 8] = load64_be(in); in += 8; @@ -146,7 +146,7 @@ void crypto_sha512_update(crypto_sha512_ctx *ctx, const u8 *in, size_t inlen) } // Remaining processing byte by byte - FOR (i, 0, reminder) { + FOR (i, 0, remainder) { set_input(ctx, *in); in++; ctx->m_index++;