|
|
|
@ -361,10 +361,12 @@ static struct pool *current_pool(void)
@@ -361,10 +361,12 @@ static struct pool *current_pool(void)
|
|
|
|
|
return pool; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Algo benchmark, crash-prone, system independent stage
|
|
|
|
|
static double bench_algo_stage3( |
|
|
|
|
enum sha256_algos algo |
|
|
|
|
) |
|
|
|
|
{ |
|
|
|
|
// Random work pulled from a pool
|
|
|
|
|
static uint8_t some_block[] = { |
|
|
|
|
0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0xD8, 0x07, 0x17, 0xC9, 0x13, 0x6F, 0xDC, 0xBE, 0xDE, 0xB7, |
|
|
|
|
0xB2, 0x14, 0xEF, 0xD1, 0x72, 0x7F, 0xA3, 0x72, 0xB2, 0x5D, 0x88, 0xF0, 0x00, 0x00, 0x05, 0xAA, |
|
|
|
@ -781,6 +783,7 @@ static void bench_algo(
@@ -781,6 +783,7 @@ static void bench_algo(
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Figure out the longest algorithm name
|
|
|
|
|
static void init_max_name_len() |
|
|
|
|
{ |
|
|
|
|
size_t i; |
|
|
|
|