Lines Matching refs:result
298 int result; in compare_drbg_fork_result() local
303 result = l->private - r->private; in compare_drbg_fork_result()
305 if (result == 0) in compare_drbg_fork_result()
306 result = memcmp(l->random, r->random, RANDOM_SIZE); in compare_drbg_fork_result()
308 if (result == 0) in compare_drbg_fork_result()
309 result = l->pindex - r->pindex; in compare_drbg_fork_result()
311 return result; in compare_drbg_fork_result()
333 drbg_fork_result result[2]) in test_drbg_reseed_in_child()
359 result[0].pid = pid; in test_drbg_reseed_in_child()
360 result[0].private = 0; in test_drbg_reseed_in_child()
361 memcpy(result[0].random, &random[0], RANDOM_SIZE); in test_drbg_reseed_in_child()
364 result[1].pid = pid; in test_drbg_reseed_in_child()
365 result[1].private = 1; in test_drbg_reseed_in_child()
366 memcpy(result[1].random, &random[RANDOM_SIZE], RANDOM_SIZE); in test_drbg_reseed_in_child()
411 drbg_fork_result result[DRBG_FORK_RESULT_COUNT]; in test_rand_reseed_on_fork() local
412 drbg_fork_result *presult = &result[2]; in test_rand_reseed_on_fork()
414 memset(&result, 0, sizeof(result)); in test_rand_reseed_on_fork()
440 strcpy(result[0].name, "parent"); in test_rand_reseed_on_fork()
441 strcpy(result[1].name, "parent"); in test_rand_reseed_on_fork()
444 result[0].pid = pid; in test_rand_reseed_on_fork()
445 result[0].private = 0; in test_rand_reseed_on_fork()
446 memcpy(result[0].random, &random[0], RANDOM_SIZE); in test_rand_reseed_on_fork()
449 result[1].pid = pid; in test_rand_reseed_on_fork()
450 result[1].private = 1; in test_rand_reseed_on_fork()
451 memcpy(result[1].random, &random[RANDOM_SIZE], RANDOM_SIZE); in test_rand_reseed_on_fork()
455 memcpy(psample, &result[i].random[0], RANDOM_SIZE); in test_rand_reseed_on_fork()
460 qsort(result, DRBG_FORK_RESULT_COUNT, sizeof(drbg_fork_result), in test_rand_reseed_on_fork()
465 if (result[i].random[0] == result[i-1].random[0]) { in test_rand_reseed_on_fork()
467 ++duplicate[result[i].private]; in test_rand_reseed_on_fork()
503 char *rand_hex = OPENSSL_buf2hexstr(result[i].random, RANDOM_SIZE); in test_rand_reseed_on_fork()
507 result[i].pid, in test_rand_reseed_on_fork()
508 result[i].name, in test_rand_reseed_on_fork()
509 result[i].private ? "private" : "public" in test_rand_reseed_on_fork()