Have all algorithm test programs call fips_algtest_init() at startup:

this will perform all standalone operations such as setting error
callbacks, entering FIPS mode etc.
This commit is contained in:
Dr. Stephen Henson
2011-03-25 16:36:46 +00:00
parent d4178c8fb1
commit cd22dfbf01
18 changed files with 28 additions and 51 deletions

View File

@@ -241,7 +241,7 @@ static void run_test(unsigned char *key, int keylen, AES_PRNG_MCT *tv)
int main()
{
fips_set_error_print();
fips_algtest_init();
run_test(aes_128_mct_key, 16, &aes_128_mct_tv);
printf("FIPS PRNG test 1 done\n");
run_test(aes_192_mct_key, 24, &aes_192_mct_tv);