summaryrefslogtreecommitdiff
path: root/salsa20-crypt-internal.c
diff options
context:
space:
mode:
Diffstat (limited to 'salsa20-crypt-internal.c')
-rw-r--r--salsa20-crypt-internal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/salsa20-crypt-internal.c b/salsa20-crypt-internal.c
index 1b9ca42b..da4732bc 100644
--- a/salsa20-crypt-internal.c
+++ b/salsa20-crypt-internal.c
@@ -64,7 +64,7 @@ _salsa20_crypt_2core(struct salsa20_ctx *ctx, unsigned rounds,
_salsa20_2core (x, ctx->input, rounds);
ctx->input[8] += 2;
ctx->input[9] += (ctx->input[8] < 2);
- if (length < 2 * SALSA20_BLOCK_SIZE)
+ if (length <= 2 * SALSA20_BLOCK_SIZE)
{
memxor3 (dst, src, x, length);
return;