summaryrefslogtreecommitdiff
path: root/chacha-crypt.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2020-03-09 22:15:21 +0100
committerNiels Möller <nisse@lysator.liu.se>2020-03-09 22:15:21 +0100
commitdedba6ff09f78b96dbc5a2b3a13fb8825f438d3c (patch)
treec4e6e0fee1584c5512ed762ea82bfeb66e1c9a0d /chacha-crypt.c
parent85a2b7f27bce13683a3aade7e0005edee202e045 (diff)
downloadnettle-dedba6ff09f78b96dbc5a2b3a13fb8825f438d3c.tar.gz
Minor fixes for chacha comments and docs.
Diffstat (limited to 'chacha-crypt.c')
-rw-r--r--chacha-crypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chacha-crypt.c b/chacha-crypt.c
index 0bb44ed9..1797bd02 100644
--- a/chacha-crypt.c
+++ b/chacha-crypt.c
@@ -103,7 +103,7 @@ chacha_crypt32(struct chacha_ctx *ctx,
++ctx->state[12];
- /* stopping at 2^70 length per nonce is user's responsibility */
+ /* stopping at 2^38 length per nonce is user's responsibility */
if (length <= CHACHA_BLOCK_SIZE)
{