simplified stupid code in tkch_gen

damn old me was really dumb
This commit is contained in:
Václav Šmejkal 2024-11-19 20:50:18 +01:00
parent 035928456e
commit d14f9adaf4
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -278,13 +278,8 @@ void why2_generate_text_key_chain(char *key, int *text_key_chain, int text_key_c
for (int i = 0; i < text_key_chain_size; i++) for (int i = 0; i < text_key_chain_size; i++)
{ {
number_buffer = i;
//CHECK, IF number_buffer ISN'T GREATER THAN keyLength AND CUT WHY2_UNUSED LENGTH //CHECK, IF number_buffer ISN'T GREATER THAN keyLength AND CUT WHY2_UNUSED LENGTH
while (number_buffer >= (int) why2_get_key_length()) number_buffer = i % why2_get_key_length();
{
number_buffer -= why2_get_key_length();
}
//SET tkch VERSION //SET tkch VERSION
switch (why2_get_flags().version) switch (why2_get_flags().version)