aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/entropy
Commit message (Collapse)AuthorAgeFilesLines
* Add version_cstr (returns const char*) and move tag_size from AEAD tolloyd2015-02-112-1/+2
| | | | Cipher_Mode. Add missing includes in entropy sources, noticed by clang.
* Enable OpenSSL for providing ciphers and hashes again.lloyd2015-02-051-1/+1
|
* Remove algo factory, engines, global RNG, global state, etc.lloyd2015-02-0410-7/+143
| | | | | | | | | | | | | | | 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-233-4/+2
| | | | See github 42 for background
* Ensure all files have copyright and license info.lloyd2015-01-1020-20/+20
| | | | | Update license header line to specify the terms and refer to the file, neither of which it included before.
* Add MinGW support for the CryptoAPI RNG. Also disable the dependencieslloyd2014-12-171-0/+1
| | | | | | | | in auto_rng for a working entropy source as in situations where it doesn't work almost none of the library builds. Disable boost by default from the library. Github issue 34. Unrelated - remove long dead Tru64 as a target.
* Various small fixes and cleanups, new is_prime utillloyd2014-11-033-12/+19
|
* Don't bother polling std:: clocks if we have clock_gettimelloyd2014-08-091-32/+22
|
* Avoid std::chrono::steady_clock, missing in some distro gccslloyd2014-04-251-1/+0
|
* Avoid crash if read returns an error. Canonical case is on the blocking devicelloyd2014-04-241-1/+2
| | | | | with concurrent readers; if someone else got the entropy first we can get -1/errno=EAGAIN
* Add rng command which can dump RNG outputs or raw entropy sampleslloyd2014-03-221-2/+2
|
* Simpify HMAC_RNG reseeding process. Actually update HMAC_DRBG reseed counter.lloyd2014-03-223-57/+19
|
* Add std::chrono clock polllloyd2014-02-021-11/+30
|
* Avoid Windows macro damage. Github issue 13.lloyd2014-02-021-0/+2
|
* 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-1030-0/+1909