diff options
author | lloyd <[email protected]> | 2006-12-14 11:12:32 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-12-14 11:12:32 +0000 |
commit | 2b32d88fabd0cf45cb42981dd03258b39d1828c4 (patch) | |
tree | db8549290d367b6eef4ff62ff4bc62357135afe4 /src/numthry.cpp | |
parent | 780243495bda65e52f8f1797a3db0a25e420998b (diff) |
Move the UI pulse functions into the global library state. That is (as best
as I can tell) the last of the global data, with the exception of the single
global_lib_state pointer in libstate.cpp
Diffstat (limited to 'src/numthry.cpp')
-rw-r--r-- | src/numthry.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/numthry.cpp b/src/numthry.cpp index 382150906..8e21e6fa0 100644 --- a/src/numthry.cpp +++ b/src/numthry.cpp @@ -4,7 +4,7 @@ *************************************************/ #include <botan/numthry.h> -#include <botan/ui.h> +#include <botan/libstate.h> #include <algorithm> namespace Botan { @@ -284,7 +284,7 @@ bool MillerRabin_Test::passes_test(const BigInt& a) if(a < 2 || a >= n_minus_1) throw Invalid_Argument("Bad size for nonce in Miller-Rabin test"); - UI::pulse(UI::PRIME_TESTING); + global_state().pulse(PRIME_TESTING); BigInt y = pow_mod(a); if(y == 1 || y == n_minus_1) @@ -292,7 +292,7 @@ bool MillerRabin_Test::passes_test(const BigInt& a) for(u32bit j = 1; j != s; ++j) { - UI::pulse(UI::PRIME_TESTING); + global_state().pulse(PRIME_TESTING); y = reducer.square(y); if(y == 1) |