From 3af113688c7cf16818fa81ad43e224a92791adcc Mon Sep 17 00:00:00 2001 From: Loup Vaillant Date: Thu, 20 Jul 2017 14:52:54 +0200 Subject: [PATCH] spelling --- src/sha512.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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++; -- 2.47.3