[E&D CHANGE] reversed textKeyChain generation

tag 'old-generation-but_newer' contains older generation

https://github.com/ENGO150/WHY2/tree/old-generation-but_newer
This commit is contained in:
Václav Šmejkal 2022-07-11 19:12:41 +02:00
parent ee0f9f00af
commit 0f01cde0f1
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -270,15 +270,15 @@ void generateTextKeyChain(char *key, int *textKeyChain, int textKeyChainSize)
//FILL textKeyChain
if ((numberBuffer + 1) % 3 == 0)
{
textKeyChain[i] = key[numberBuffer] * key[numberBuffer2];
textKeyChain[textKeyChainSize - (i + 1)] = key[numberBuffer] * key[numberBuffer2];
}
else if ((numberBuffer + 1) % 2 == 0)
{
textKeyChain[i] = key[numberBuffer] - key[numberBuffer2];
textKeyChain[textKeyChainSize - (i + 1)] = key[numberBuffer] - key[numberBuffer2];
}
else
{
textKeyChain[i] = key[numberBuffer] + key[numberBuffer2];
textKeyChain[textKeyChainSize - (i + 1)] = key[numberBuffer] + key[numberBuffer2];
}
}
}