From 350574a043f2668187b7285617a6c8222e7c76a8 Mon Sep 17 00:00:00 2001 From: Konstantinos Margaritis Date: Sun, 12 Mar 2023 19:24:42 +0000 Subject: [PATCH] uncomment loop --- crypto/chacha20/src/xchacha20.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/chacha20/src/xchacha20.c b/crypto/chacha20/src/xchacha20.c index cc8c0420..a99d1f13 100644 --- a/crypto/chacha20/src/xchacha20.c +++ b/crypto/chacha20/src/xchacha20.c @@ -81,7 +81,7 @@ void xchacha_hchacha20(uint8_t *out, const uint8_t *in, const uint8_t *k){ x14 = U8TO32_LITTLE(in + 8); x15 = U8TO32_LITTLE(in + 12); - //for (i = 0; i < 10; i++){ + for (i = 0; i < 10; i++){ QUARTERROUND(x0, x4, x8, x12); QUARTERROUND(x1, x5, x9, x13); QUARTERROUND(x2, x6, x10, x14); @@ -90,7 +90,7 @@ void xchacha_hchacha20(uint8_t *out, const uint8_t *in, const uint8_t *k){ QUARTERROUND(x1, x6, x11, x12); QUARTERROUND(x2, x7, x8, x13); QUARTERROUND(x3, x4, x9, x14); - //} + } U32TO8_LITTLE(out + 0, x0); U32TO8_LITTLE(out + 4, x1); -- 2.30.2