This commit is contained in:
kuntz 2021-02-12 23:16:31 -06:00
parent 29f30296c9
commit db77a7e530
2 changed files with 6 additions and 6 deletions

View File

@ -119,7 +119,7 @@ static void check(void)
{
ui distance;
u64 v[16], m[16];
const u64 sub_block = i * 32;
const u64 sub_block = i * 64;
find_hash(0, output_block, input_block, v, m, input_iv, sub_block, 20);

View File

@ -5,13 +5,13 @@
#define CUTS_LENGTH 5
static ui CHAIN_CUTS[CUTS_LENGTH] = { 37, 23, 17, 14, 11 };
//----------------------------------------------------------------------------------------------------------------------
#include <windows.h>
//#include <windows.h>
si main(si argc, s8 ** argv)
{
if (SetPriorityClass(GetCurrentProcess(), IDLE_PRIORITY_CLASS))
/*if (SetPriorityClass(GetCurrentProcess(), IDLE_PRIORITY_CLASS))
{
printf("Low priority set\n");
}
}*/
if (sem_init(&csoutput, 1, 1) == -1)
{
@ -124,8 +124,8 @@ static void check(void)
memcpy(input_block, output_block, 128);
find_p_hash(&distance, output_block, input_block, v, m, input_iv, sub_block + CUTS_LENGTH + 1, CUTOFF, 20);
//find_p_hash2(&distance, output_block, input_block, v, m, input_iv, sub_block + CUTS_LENGTH + 1, CUTOFF, 20);
//find_p_hash(&distance, output_block, input_block, v, m, input_iv, sub_block + CUTS_LENGTH + 1, CUTOFF, 20);
find_p_hash2(&distance, output_block, input_block, v, m, input_iv, sub_block + CUTS_LENGTH + 1, CUTOFF, 20);
total += distance;
}