Changeset View
Changeset View
Standalone View
Standalone View
tests/benchmark.c
Context not available. | |||||
{ | { | ||||
int last_argc = -1; | int last_argc = -1; | ||||
int no_blinding = 0; | int no_blinding = 0; | ||||
int use_random_daemon = 0; | |||||
int use_secmem = 0; | int use_secmem = 0; | ||||
int pk_count = 100; | int pk_count = 100; | ||||
Context not available. | |||||
debug++; | debug++; | ||||
argc--; argv++; | argc--; argv++; | ||||
} | } | ||||
else if (!strcmp (*argv, "--use-random-daemon")) | |||||
{ | |||||
use_random_daemon = 1; | |||||
argc--; argv++; | |||||
} | |||||
else if (!strcmp (*argv, "--use-secmem")) | else if (!strcmp (*argv, "--use-secmem")) | ||||
{ | { | ||||
use_secmem = 1; | use_secmem = 1; | ||||
Context not available. | |||||
else if (!use_secmem) | else if (!use_secmem) | ||||
xgcry_control ((GCRYCTL_DISABLE_SECMEM, 0)); | xgcry_control ((GCRYCTL_DISABLE_SECMEM, 0)); | ||||
if (use_random_daemon) | |||||
xgcry_control ((GCRYCTL_USE_RANDOM_DAEMON, 1)); | |||||
if (with_progress) | if (with_progress) | ||||
gcry_set_progress_handler (progress_cb, NULL); | gcry_set_progress_handler (progress_cb, NULL); | ||||
Context not available. |