changed textKeyChain generation

it's a little change but it will make encryption/decryption old text UNSUCCESSFUL
This commit is contained in:
Václav Šmejkal 2022-05-28 19:45:26 +02:00
parent 3d48c87d8b
commit 0d64f4fa7c

View File

@ -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)