fixed possible WHY2_v4 security problem

This commit is contained in:
Václav Šmejkal 2024-11-19 20:48:08 +01:00
parent 5f1b5e2f92
commit 035928456e
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -306,7 +306,7 @@ void why2_generate_text_key_chain(char *key, int *text_key_chain, int text_key_c
case WHY2_v4: case WHY2_v4:
number_buffer_2 = text_key_chain_size - (i + 1); number_buffer_2 = text_key_chain_size - (i + 1);
number_buffer_3 = (why2_get_key_length() ^ text_key_chain_size) >> (number_buffer & (i < text_key_chain_size)); //gl fucker number_buffer_3 = (why2_get_key_length() ^ text_key_chain_size) >> (((number_buffer ^ number_buffer_2) % 2) & (i < text_key_chain_size)); //gl fucker
break; break;
} }