From 81c90629732297795f66350dfd0f3af353a1f2e8 Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Fri, 31 Mar 2023 12:59:36 +0200 Subject: [PATCH] sakke.c: use xorbuf --- wolfcrypt/src/sakke.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wolfcrypt/src/sakke.c b/wolfcrypt/src/sakke.c index 17d61d93a..3803a4dd5 100644 --- a/wolfcrypt/src/sakke.c +++ b/wolfcrypt/src/sakke.c @@ -6136,9 +6136,7 @@ static void sakke_xor_in_v(const byte* v, word32 hashSz, byte* out, int idx, i = 0; } o = i; - for (; i < hashSz; i++) { - out[idx + i - o] ^= v[i]; - } + xorbuf(out + idx + i - o, v + i, hashSz - i); } /*