Changeset View
Changeset View
Standalone View
Standalone View
b/tests/random.c
Context not available. | |||||
signal (SIGPIPE, SIG_IGN); | signal (SIGPIPE, SIG_IGN); | ||||
#endif | #endif | ||||
/* don't switch rng in fips mode */ | |||||
if (early_rng) | if (early_rng) | ||||
check_early_rng_type_switching (); | if (!gcry_fips_mode_active()) | ||||
check_early_rng_type_switching (); | |||||
gcry_control (GCRYCTL_DISABLE_SECMEM, 0); | gcry_control (GCRYCTL_DISABLE_SECMEM, 0); | ||||
if (!gcry_check_version (GCRYPT_VERSION)) | if (!gcry_check_version (GCRYPT_VERSION)) | ||||
Context not available. | |||||
check_nonce_forking (); | check_nonce_forking (); | ||||
check_close_random_device (); | check_close_random_device (); | ||||
} | } | ||||
check_rng_type_switching (); | /* don't switch rng in fips mode */ | ||||
if (!gcry_fips_mode_active()) | |||||
check_rng_type_switching (); | |||||
if (!in_recursion) | if (!in_recursion) | ||||
run_all_rng_tests (program); | run_all_rng_tests (program); | ||||
Context not available. |