diff options
author | lloyd <[email protected]> | 2006-07-01 21:09:54 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-07-01 21:09:54 +0000 |
commit | 6d3a4de1efcb6b04a1ab87037d487f979d7ca445 (patch) | |
tree | 02342b193a3808d2010b441480f65aa45a23dc92 /src/pk_core.cpp | |
parent | 3d1d14cf405111e30643cf4c7674d441cc07a2e0 (diff) |
Access the global configuration through an object reference instead
of stand-alone functions. Store the configuration in a distinct
object, rather than just a map inside the library state.
Diffstat (limited to 'src/pk_core.cpp')
-rw-r--r-- | src/pk_core.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pk_core.cpp b/src/pk_core.cpp index 3f4a4850d..1adc2de64 100644 --- a/src/pk_core.cpp +++ b/src/pk_core.cpp @@ -18,7 +18,9 @@ namespace { *************************************************/ BigInt blinding_factor(u32bit modulus_size) { - const u32bit BLINDING_BITS = Config::get_u32bit("pk/blinder_size"); + const u32bit BLINDING_BITS = + global_config().option_as_u32bit("pk/blinder_size"); + if(BLINDING_BITS == 0) return 0; return random_integer(std::min(modulus_size - 1, BLINDING_BITS)); |