From 0d64f4fa7c37f0b57914db902258e279a71c7f9a Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sat, 28 May 2022 19:45:26 +0200 Subject: [PATCH] changed textKeyChain generation it's a little change but it will make encryption/decryption old text UNSUCCESSFUL --- src/lib/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/misc.c b/src/lib/misc.c index 605a42f..a43b2ee 100644 --- a/src/lib/misc.c +++ b/src/lib/misc.c @@ -151,7 +151,7 @@ void generateTextKeyChain(char *key, int *textKeyChain, int textKeyChainSize) numberBuffer -= getKeyLength(); } - numberBuffer2 = numberBuffer + (i < textKeyChainSize); + numberBuffer2 = getKeyLength() - (numberBuffer + (i < textKeyChainSize)); //FILL textKeyChain if ((numberBuffer + 1) % 3 == 0)