]> git.codecow.com Git - Monocypher.git/commitdiff
comment re-arrangement
authorLoup Vaillant <loup@loup-vaillant.fr>
Sun, 4 Sep 2016 00:16:58 +0000 (02:16 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Sun, 4 Sep 2016 00:16:58 +0000 (02:16 +0200)
chacha20.c

index 97b9c9d84b1cfbff818246af16195ec03e4ae9ca..54a32d51ea787d7f72aca576351504f9f2ae73af 100644 (file)
@@ -301,6 +301,9 @@ init_Xchacha20(crypto_chacha_ctx *ctx,
     half_chacha20_block(ctx->input + 5, &init_ctx); // init derived key
 }
 
+//////////////////
+/// Encryption ///
+//////////////////
 static void
 encrypt_chacha20(crypto_chacha_ctx *ctx,
                  const uint8_t     *plain_text,
@@ -330,9 +333,6 @@ encrypt_chacha20(crypto_chacha_ctx *ctx,
     }
 }
 
-//////////////////
-/// Encryption ///
-//////////////////
 void
 crypto_encrypt_chacha20(const uint8_t  key[32],
                         const uint8_t  nonce[8],