]> git.codecow.com Git - Monocypher.git/commitdiff
spelling
authorLoup Vaillant <loup@loup-vaillant.fr>
Thu, 20 Jul 2017 12:52:54 +0000 (14:52 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Thu, 20 Jul 2017 12:52:54 +0000 (14:52 +0200)
src/sha512.c

index d1454a4c706ae27c6d3589a815a03ef2a384b46b..a1cff09073f8f54e3daad9755446024917f6da35 100644 (file)
@@ -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++;