aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/info.txt
Commit message (Collapse)AuthorAgeFilesLines
* Drop debug.h, it didn't turn out to be that useful for most things,lloyd2010-10-071-1/+0
| | | | especially now that the standalone hex encoder is around
* There is a pretty common pattern in the code for testing for internallloyd2010-09-261-0/+2
| | | | | | | | | | errors of the form if(some_expr_indicating_failure) throw Internal_Error("Some mildly informative message"); Make this simpiler with the addition of a BOTAN_ASSERT macro which will throw an exception upon failure.
* Move the get_byte template to its own header, because many fileslloyd2010-02-021-0/+1
| | | | including loadstor.h actually just needed get_byte and nothing else.
* Inline debug funcs to debug.h, make print_vec a template on the base typelloyd2010-01-211-1/+0
|
* Remove Exception::set_msg. Inline all exception constructors.lloyd2010-01-041-1/+0
|
* Add debug source to build. Fix typo in source.lloyd2009-12-271-0/+1
|
* Add debug.h which is an internal-only header with debug functions thatlloyd2009-12-271-0/+1
| | | | I tend to rewrite often in particular files while debugging things.
* Un-internal loadstor.h (and its header deps, rotate.h andlloyd2009-12-211-3/+3
| | | | | | | | | | | | | | bswap.h); too many external apps rely on loadstor.h existing. Define 64-bit generic bswap in terms of 32-bit bswap, since it's not much slower if 32-bit is also generic, and much faster if it's not. This may be quite helpful on 32-bit x86 in particular. Change formulation of generic 32-bit bswap. It may be faster or slower depending on the CPU, especially the latency and throuput of rotate instructions, but should be faster on an ideally superscalar processor with rotate instructions (ie, what I expect future CPUs to look more like).
* Make many more headers internal-only.lloyd2009-12-161-5/+7
| | | | | | | | | | | | | Fixes for the amalgamation generator for internal headers. Remove BOTAN_DLL exporting macros from all internal-only headers; the classes/functions there don't need to be exported, and avoiding the PIC/GOT indirection can be a big win. Add missing BOTAN_DLLs where necessary, mostly gfpmath and cvc For GCC, use -fvisibility=hidden and set BOTAN_DLL to the visibility __attribute__ to export those classes/functions.
* Full working amalgamation build, plus internal-only headers concept.lloyd2009-12-161-0/+33
|
* Consolidate the non-canonical epoch timers, like cpuid and Win32'slloyd2009-12-011-1/+1
| | | | | | | | | | | | | | QueryPerformanceCounter, into an entropy source hres_timer. Its results, if any, do not count as contributing entropy to the poll. Convert the other (monotonic/fixed epoch) timers to a single function get_nanoseconds_clock(), living in time.h, which statically chooses the 'best' timer type (clock_gettime, gettimeofday, std::clock, in that order depending on what is available). Add feature test macros for clock_gettime and gettimeofday. Remove the Timer class and timer.h. Remove the Timer& argument to the algorithm benchmark function.
* Remove the 'realname' attribute on all modules and cc/cpu/os info files.lloyd2009-10-291-2/+0
| | | | | Pretty much useless and unused, except for listing the module names in build.h and the short versions totally suffice for that.
* Remove add block from utils/info.txtlloyd2009-09-291-27/+0
|
* Add some basic prefetching support (only supported with GNU C++ or thingslloyd2009-09-291-0/+1
| | | | | that claim to be by defining __GNUG__ (such as Intel C++)) in new utils header prefetch.h
* Add runtime cpuid support. Check in the SSE2 engine that SSE2 is actuallylloyd2009-09-251-0/+2
| | | | existing on the current CPU before returning an object.
* Split up util.h into 3 fileslloyd2009-09-171-2/+1
| | | | | | | - rounding.h (round_up, round_down) - workfactor.h (dl_work_factor) - timer.h (system_time) And update all users of the previous util.h
* Move memory locking function decls to mlock.hlloyd2009-09-171-0/+1
| | | | Inline round_up and round_down
* Add a new option --no-autoload to configure.py. This will produce a minimallloyd2009-09-041-1/+1
| | | | | | | | | | | build (only libstate, utils, plus dependencies), which can be extended with use of --enable-modules. To add new modules to the set of always-loaded, use 'load_on always' in info.txt Also fix a few small build problems that popped up when doing a minimal build. Requested by a user.
* Correct source listings for moved fileslloyd2009-07-161-2/+0
|
* Move some files around to break up dependencies between directorieslloyd2009-07-161-12/+0
|
* Add a script that reads the output of print_deps.py and rewriteslloyd2009-07-151-4/+6
| | | | | | the info.txt files with the right module dependencies. Apply it across the codebase.
* Move mutex.h from utils/ to mutex/ dir as more relevant arealloyd2009-07-011-1/+0
|
* Check in a branch with a major redesign on how entropy polling is performed.lloyd2009-01-271-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Combine the fast and slow polls, into a single poll() operation. Instead of being given a buffer to write output into, the EntropySource is passed an Entropy_Accumulator. This handles the RLE encoding that xor_into_buf used to do. It also contains a cached I/O buffer so entropy sources do not individually need to allocate memory for that with each poll. When data is added to the accumulator, the source specifies an estimate of the number of bits of entropy per byte, as a double. This is tracked in the accumulator. Once the estimated entropy hits a target (set by the constructor), the accumulator's member function predicate polling_goal_achieved flips to true. This signals to the PRNG that it can stop performing polling on sources, also polls that take a long time periodically check this flag and return immediately. The Win32 and BeOS entropy sources have been updated, but blindly; testing is needed. The test_es example program has been modified: now it polls twice and outputs the XOR of the two collected results. That helps show if the output is consistent across polls (not a good thing). I have noticed on the Unix entropy source, occasionally there are many 0x00 bytes in the output, which is not optimal. This also needs to be investigated. The RLE is not actually RLE anymore. It works well for non-random inputs (ASCII text, etc), but I noticed that when /dev/random output was fed into it, the output buffer would end up being RR01RR01RR01 where RR is a random byte and 00 is the byte count. The buffer sizing also needs to be examined carefully. It might be useful to choose a prime number for the size to XOR stuff into, to help ensure an even distribution of entropy across the entire buffer space. Or: feed it all into a hash function? This change should (perhaps with further modifications) help WRT the concerns Zack W raised about the RNG on the monotone-dev list.
* Move xor_into_buf to xor_buf.cpp. Also add a new template wrapper forlloyd2008-11-231-0/+1
| | | | xoring integer values in.
* Drop use of entropy estimation in Randpool for the same reason as HMAC_RNG.lloyd2008-11-111-2/+0
| | | | | | As with HMAC_RNG, instead assume one bit of conditional entropy per byte of polled material. Since they are no longer used, drop the entropy estimation routines entirely.
* Add a SCAN_Name class that encapsulates operations currently done repeatedlylloyd2008-11-091-0/+2
| | | | all over the engine code.
* Move botan.h from utils to libstate, since libstate has lookup.h whichlloyd2008-11-081-1/+0
| | | | | | botan.h includes unconditionally. Remove obsolete seed_rng code from init.h
* Split the last parts of the 'core' modulelloyd2008-11-081-0/+1
| | | | Add some missing info.txts
* Move most of what was left in core to utils (since that is what they are,lloyd2008-11-081-1/+7
| | | | | basically). buf_comp and data_src might need their own directory, but it doesn't really feel like it.
* Move mutex.h from core to utilslloyd2008-11-081-0/+1
| | | | Move core/sym_algo.{h,cpp} to sym_algo
* Move Entropy_Estimator to utils/entropy.h (from anon namespace in HMAC_RNGlloyd2008-11-061-0/+2
| | | | | implementation), remove freestanding estimate_entropy function, change Randpool to use entropy estimator.
* Document dependencies between moduleslloyd2008-10-011-0/+4
|
* Move datastore from core to utilslloyd2008-09-301-7/+9
|
* Merge the 3 mlocks (ml_unix, ml_win32, stub mlock.cpp) into a single mlock.cpplloyd2008-09-291-0/+4
| | | | | | in utils. Support OS feature macros, eg BOTAN_TARGET_OS_HAS_POSIX_MLOCK (how very autoconf)
* Rename all modinfo.txt files to info.txt, since they are all (none) oflloyd2008-09-291-0/+27
them modules now. In any case there is no distinction so info.txt seems better.