| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
where it is needed.
|
|
|
|
| |
access to /dev/random (will be cleaned up shortly)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
random bits. Now they take a reference to a RandomNumberGenerator object.
This was applied several times out, so now the constructors to private
key objects also take a RandomNumberGenerator& argument. This is also true
for a number of randomized algorithms (Miller-Rabin, for instance).
You can get a reference to the global PRNG with
global_state().prng_reference()
This is a provisional thing: and warning: it is not thread safe! If this
is a problem instead keep per-thread PRNGs and pass them were needed.
|
|
|
|
|
|
|
|
|
| |
essentially a facade for the RNG object living in the global library state.
Rewrite all callers to directly invoke the global state object: this makes
it more clear what functions are actually accessing mutable state outside of
the normal reference graph (and thus, which functions will have to be
altered in order to remove this dependency). Other facades remain in place
for the configuration object and the memory allocator factory.
|
|
|
|
| |
exception upto the top level, that's what it's there for.
|
|
|
|
| |
Commit the actual squaring tests in checks/bigint.cpp
|
|
|
|
| |
instead of decimal.
|
|
|