aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/entropy/proc_walk
Commit message (Collapse)AuthorAgeFilesLines
* Abstract out mutex type. Make threads optional.Jack Lloyd2016-10-122-3/+3
|
* Compile fixJack Lloyd2016-07-181-1/+1
|
* Fix proc_walk - would always return 0 entropy collected.Jack Lloyd2016-07-181-0/+3
| | | | | | Fix BeOS stat reader - was calling wrong function on the rng. Remove entropy estimate defines from build.h, no longer used.
* Revamp entropy pollingJack Lloyd2016-07-172-4/+10
| | | | | Remove Entropy_Accumulator, instead have entropy sources directly add entropy to the RNG.
* cppcheck fixes: Class 'X' has a constructor with 1 argument that is not ↵Daniel Neus2016-03-051-1/+1
| | | | explicit.
* Add final attribute to many classesJack Lloyd2016-01-101-1/+1
| | | | | | | In some cases this can offer better optimization, via devirtualization. And it lets the user know the class is not intended for derivation. Some discussion in GH #402
* Push the hardcoded entropy estimates up to build.hJack Lloyd2015-11-281-2/+1
| | | | Defaults should be fine for everyone but it makes the values more transparent
* New reseed_with_sources call on RNGsJack Lloyd2015-11-242-3/+3
| | | | | | | | | | | | | Provides an easier way for an application to configure a list of entropy sources they'd like to use, or add a custom entropy source to their seeding. Exposes some toggles for the global/default entropy sources to build.h Adds basic entropy tests which runs the polls and does sanity checking on the results, including compression tests if available. These are less useful for the CSPRNG outputs but a good check for the ones producing plain ASCII like the /proc reader.
* Avoid concatination of charsSimon Warta2015-09-221-1/+1
| | | | | | | Ever tried? auto str = "some long string"; auto str2 = str + '\n'; It's not with the brainfuck finding the bug.
* Remove alloc module; move secmem.h to base and locking_allocator to utilsJack Lloyd2015-08-291-4/+0
|
* entropy: Add missing overridesDaniel Seither2015-07-302-3/+3
|
* Add Android OSDaniel Seither2015-07-171-0/+1
| | | | | | The android.txt is a copy of linux.txt minus the getsid feature (Android's libc, Bionic, doesn't support it) and the alias linux-gnu. It is supported anywhere where linux is supported.
* Remove references to removed tru64 OSDaniel Seither2015-07-171-1/+0
| | | | There's no OS file in src/build-data/os for tru64
* lib/entropy: Convert &vec[0] to vec.data()Simon Warta2015-06-271-2/+2
|
* Remove the shared IO buffer from EntropySource_Accumulator.lloyd2015-03-182-4/+5
| | | | Instead each source that needs a buffer maintains their own.
* Add missing includelloyd2015-02-241-0/+1
|
* Hide all uses of boost filesystem in fs.cpp. Use readdir as anlloyd2015-02-211-6/+1
| | | | | alternate implementation for Unix and add some feature checks so a boost-free build of the tests and command line are possible again.
* Remove algo factory, engines, global RNG, global state, etc.lloyd2015-02-042-0/+3
| | | | | | | | | | | | | | | Convert all uses of Algorithm_Factory and the engines to using Algo_Registry The shared pool of entropy sources remains but is moved to EntropySource. With that and few remaining initializations (default OIDs and aliases) moved elsewhere, the global state is empty and init and shutdown are no-ops. Remove almost all of the headers and code for handling the global state, except LibraryInitializer which remains as a compatability stub. Update seeding for blinding so only one hacky almost-global RNG instance needs to be setup instead of across all pubkey uses (it uses either the system RNG or an AutoSeeded_RNG if the system RNG is not available).
* Centralize where string.h/cstring is included to mem_ops.hlloyd2015-01-231-1/+0
| | | | See github 42 for background
* Ensure all files have copyright and license info.lloyd2015-01-102-2/+2
| | | | | Update license header line to specify the terms and refer to the file, neither of which it included before.
* Various small fixes and cleanups, new is_prime utillloyd2014-11-031-1/+1
|
* Guess I won't be needing theselloyd2014-01-181-1/+0
|
* More unique_ptr, also cleanup MGF1 usagelloyd2014-01-182-28/+12
|
* Move lib into srclloyd2014-01-103-0/+240