diff options
author | lloyd <[email protected]> | 2008-04-10 14:35:43 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-04-10 14:35:43 +0000 |
commit | e540b08fcc5ccf5c56093a278a417b274eda0ae6 (patch) | |
tree | 1391172b3b8d17651b1385f6c6846802f2c2c4de /src/libstate.cpp | |
parent | a4af97b93eafdacfd26c55d37e4c06e20ff95258 (diff) |
Rename fips140.h to selftest.h, since it doesn't really have much to do
with FIPS-140 aside from being a startup self test.
Remove the test of X9.19 MAC at startup because it's not that important, and
loading it in the startup means a prototypical object will be created and
exist in memory for the entire process runtime. This actually raises an
interesting idea, that periodically the cache of objects could be cleared
and, if one is needed again, it can be created again as if it was the first
time.
Diffstat (limited to 'src/libstate.cpp')
-rw-r--r-- | src/libstate.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstate.cpp b/src/libstate.cpp index 8221d09bd..154ec928c 100644 --- a/src/libstate.cpp +++ b/src/libstate.cpp @@ -13,7 +13,7 @@ #include <botan/timers.h> #include <botan/charset.h> #include <botan/x931_rng.h> -#include <botan/fips140.h> +#include <botan/selftest.h> #include <algorithm> namespace Botan { @@ -364,8 +364,8 @@ void Library_State::initialize(const InitializerOptions& args, if(args.fips_mode() || args.self_test()) { - if(!FIPS140::passes_self_tests()) - throw Self_Test_Failure("FIPS-140 startup tests"); + if(!passes_self_tests()) + throw Self_Test_Failure("Initialization self-tests"); } } |