aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/util.h
Commit message (Collapse)AuthorAgeFilesLines
* Split up util.h into 3 fileslloyd2009-09-171-45/+0
| | | | | | | - 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-6/+12
| | | | Inline round_up and round_down
* Thomas Moschny passed along a request from the Fedora packagers which camelloyd2009-03-301-16/+18
| | | | | | | | | | | | | | | up during the Fedora submission review, that each source file include some text about the license. One handy Perl script later and each file now has the line Distributed under the terms of the Botan license after the copyright notices. While I was in there modifying every file anyway, I also stripped out the remainder of the block comments (lots of astericks before and after the text); this is stylistic thing I picked up when I was first learning C++ but in retrospect it is not a good style as the structure makes it harder to modify comments (with the result that comments become fewer, shorter and are less likely to be updated, which are not good things).
* Move Entropy_Estimator to utils/entropy.h (from anon namespace in HMAC_RNGlloyd2008-11-061-1/+0
| | | | | implementation), remove freestanding estimate_entropy function, change Randpool to use entropy estimator.
* Merge the 3 mlocks (ml_unix, ml_win32, stub mlock.cpp) into a single mlock.cpplloyd2008-09-291-1/+1
| | | | | | in utils. Support OS feature macros, eg BOTAN_TARGET_OS_HAS_POSIX_MLOCK (how very autoconf)
* Move util functions into utils/ modulelloyd2008-09-281-0/+38