From: Loup Vaillant Date: Sun, 4 Sep 2016 00:16:58 +0000 (+0200) Subject: comment re-arrangement X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=633da2c3502ffdaaa8ddd84b60fe1e17345f2191;p=Monocypher.git comment re-arrangement --- diff --git a/chacha20.c b/chacha20.c index 97b9c9d..54a32d5 100644 --- a/chacha20.c +++ b/chacha20.c @@ -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],