Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Clear K after new PRK is generated. | lloyd | 2008-10-28 | 1 | -4/+7 |
| | |||||
* | Add HMAC_RNG benchmarks. Change X9.31 PRNG to use HMAC_RNG as lower RNG | lloyd | 2008-10-28 | 2 | -11/+35 |
| | |||||
* | Set the default XTS (ASCII value of "Botan HMAC_RNG XTS") only once, in | lloyd | 2008-10-28 | 1 | -86/+92 |
| | | | | | | | the constructor. This avoids repeatedly resetting it for each reseed, if HMAC_RNG is used without entropy sources and using only application-provided entropy. Very slightly more efficient and also the code for reseed becomes a bit clearer. | ||||
* | Mention HMAC_RNG in release notes | lloyd | 2008-10-28 | 1 | -0/+1 |
| | |||||
* | Wrap lines to 80 columns | lloyd | 2008-10-28 | 10 | -30/+54 |
| | |||||
* | Modify AutoSeeded_RNG to use HMAC_RNG instead of Randpool, if HMAC_RNG is | lloyd | 2008-10-28 | 2 | -5/+20 |
| | | | | | | | | available in the build. If neither is avilable, the constructor will throw an exception. As before, the underlying RNG will be wrapped in an X9.31 PRNG using AES-256 as the block cipher (if X9.31 is enabled in the build). | ||||
* | Add HMAC_RNG, which is an RNG design based on Hugo Krawczyk's paper | lloyd | 2008-10-28 | 3 | -0/+403 |
| | | | | | | | | "On Extract-then-Expand Key Derivation Functions and an HMAC-based KDF". While it has much smaller state than Randpool (256-512 bits, typically, versus 4096 bits commonly used in Randpool), the more formal design analysis seems attractive (and realistically if the RNG can manage to contain 256 bits of conditional entropy, that is more than sufficient). | ||||
* | Remove stray text | lloyd | 2008-10-28 | 1 | -1/+0 |
| | |||||
* | In ANSI_X931_RNG::reseed, only attempt to reseed the X9.31 state if | lloyd | 2008-10-28 | 1 | -7/+10 |
| | | | | the underlying PRNG's reseed was a success. | ||||
* | Mention change in Randpool reseeding in release notes | lloyd | 2008-10-28 | 1 | -0/+1 |
| | |||||
* | Substantially change Randpool's reseed logic. Now when a reseed | lloyd | 2008-10-27 | 19 | -34/+107 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | is requested, Randpool will first do a fast poll on each entropy source that has been registered. It will count these poll results towards the collected entropy count, with a maximum of 96 contributed bits of entropy per poll (only /dev/random reaches this, others measure at 50-60 bits typically), and a maximum of 256 for sum contribution of the fast polls. Then it will attempt slow polls of all devices until it thinks enough entropy has been collected (using the rather naive entropy_estimate function). It will count any slow poll for no more than 256 bits (100 or so is typical for every poll but /dev/random), and will attempt to collect at least 512 bits of (estimated/guessed) entropy. This tends to cause Randpool to use significantly more sources. Previously it was common, especially on systems with a /dev/random, for only one or a few sources to be used. This change helps assure that even if /dev/random and company are broken or compromised the RNG output remains secure (assuming at least some amount of entropy unguessable by the attacker can be collected via other sources). Also change AutoSeeded_RNG do an automatic poll/seed when it is created. | ||||
* | Use a single RNG in check/test code | lloyd | 2008-10-27 | 1 | -10/+5 |
| | |||||
* | Document OpenPGP_S2K change | lloyd | 2008-10-26 | 1 | -0/+1 |
| | |||||
* | TLS_PRF also depends on MD5 and SHA1, was not so marked | lloyd | 2008-10-26 | 1 | -0/+2 |
| | |||||
* | In KDF instead of lookup, instantiate fixed hashes (MD5, SHA-1) directly | lloyd | 2008-10-26 | 4 | -21/+24 |
| | |||||
* | Remove lookup.h use from OpenPGP S2K | lloyd | 2008-10-26 | 3 | -23/+14 |
| | |||||
* | Make S2K base class non-copyable and non-assignable by default (use clone ↵ | lloyd | 2008-10-26 | 1 | -0/+3 |
| | | | | instead) | ||||
* | Move EntropySource base class to new entropy_src.h (which allows the ↵ | lloyd | 2008-10-26 | 16 | -28/+77 |
| | | | | | | implementations to decouple from knowing about RandomNumberGenerator). | ||||
* | Remove prohibition against generating DSA parameter set with a 224 bit q, | lloyd | 2008-10-26 | 1 | -4/+0 |
| | | | | since SHA-224 is now implemented. | ||||
* | Move rng.h from core to rng | lloyd | 2008-10-26 | 1 | -0/+0 |
| | |||||
* | Move rng.{cpp,h} from core to rng/ topdir | lloyd | 2008-10-26 | 38 | -157/+241 |
| | | | | | | | | | | | | | | Add a new class AutoSeeded_RNG that is a RandomNumberGenerator that wraps up the logic formerly in RandomNumberGenerator::make_rng. make_rng in fact now just returns a new AutoSeeded_RNG object. AutoSeeded_RNG is a bit more convenient because - No need to use auto_ptr - No need to dereference (same syntax everywhere - it's an underestimated advantage imo) Also move the code from timer/timer_base to timer/ | ||||
* | Move kdf/kdf_base to kdf | lloyd | 2008-10-26 | 10 | -7/+6 |
| | |||||
* | Move pbe/pbe_base to pbe/ | lloyd | 2008-10-26 | 6 | -3/+3 |
| | |||||
* | Move s2k.{h,cpp} and S2K algos from core and kdf to new s2k/ dir | lloyd | 2008-10-26 | 13 | -2/+1 |
| | |||||
* | Put pk_pad.{h,cpp} from core into pk_pad/ dir (cleaner I think) | lloyd | 2008-10-26 | 6 | -2/+15 |
| | |||||
* | Move libstate and selftest out of core/ dir to toplevel | lloyd | 2008-10-26 | 26 | -5/+5 |
| | |||||
* | Bump version to 1.7.19-pre | lloyd | 2008-10-26 | 3 | -2/+5 |
| | |||||
* | Kill stray text | lloyd | 2008-10-24 | 1 | -1/+1 |
| | |||||
* | Add alias for Intel T2250. Based on /proc/cpuinfo sent by Benjamin Lau | lloyd | 2008-10-24 | 1 | -0/+1 |
| | |||||
* | Added prescott submodel to ia32 architecture, including aliases for | markus | 2008-10-24 | 1 | -0/+7 |
| | | | | most Intel Core Duo (32 bit, as opposed to Core 2 Duo being 64 bit). | ||||
* | If we match /proc/cpuinfo or uname against a submodel alias, instead print | lloyd | 2008-10-23 | 1 | -1/+6 |
| | | | | | the submodel it is referencing - this is usually more recognizable. Suggested by Markus Wanner. | ||||
* | Allow setting an environmental variable CPUINFO to override the name | lloyd | 2008-10-23 | 1 | -0/+11 |
| | | | | | | of /proc/cpuinfo in configure.pl This is probably only useful for testing. | ||||
* | Update log and readme for 1.7.18 release 2008-10-221.7.18 | lloyd | 2008-10-22 | 2 | -2/+2 |
| | |||||
* | Use -O2 instead of -O3 with Intel C++ | lloyd | 2008-10-22 | 1 | -1/+1 |
| | |||||
* | More useful PK benchmark output (also a bit easier to parse) | lloyd | 2008-10-22 | 1 | -32/+46 |
| | |||||
* | Use heap rather than stack for data input. Increase size to 128k | lloyd | 2008-10-22 | 1 | -5/+5 |
| | |||||
* | Install pkg-config file to /lib/pkgconfig | lloyd | 2008-10-22 | 2 | -5/+13 |
| | |||||
* | Update ICC flags for 10.1 | lloyd | 2008-10-22 | 1 | -3/+3 |
| | |||||
* | Avoid integer overflows in the benchmark timer code. This would lead to | lloyd | 2008-10-22 | 2 | -5/+10 |
| | | | | bad results, especially noticable with fast algorithms and long test times. | ||||
* | Timer tried to guess if it should use seconds or ms, but it always choose | lloyd | 2008-10-17 | 1 | -13/+4 |
| | | | | | | | the wrong one in some situation or another. Just print milliseconds no matter what. Also it's easier to read/compare if everything is in the same unit (obv) | ||||
* | Mention new pkg-config support in log.txt | lloyd | 2008-10-15 | 1 | -0/+1 |
| | |||||
* | Delete generated botan.pc on make distclean | lloyd | 2008-10-15 | 2 | -2/+2 |
| | |||||
* | Ignore files generated by InSiTo unit tests int checks/ecc_testdata | lloyd | 2008-10-15 | 1 | -1/+4 |
| | |||||
* | Add pkg-config support (requested/suggested by Zack Weinberg on monotone-dev) | lloyd | 2008-10-15 | 3 | -0/+22 |
| | |||||
* | Move CVC tests back to the last thing, also disable for the moment because | lloyd | 2008-10-15 | 1 | -1/+1 |
| | | | | | | | | | several are failing with an uncaught exception. The test failures may be due to the fact that ECDSA's support for EAC is not included at the moment, and the CVC code that attempts to do it is #if'ed out. It certainly can't help anyway. Exception is a decoding error, so seems quite plausible. | ||||
* | merge of '141433027ee455b8c8b2829f5233eb577039bd41' | lloyd | 2008-10-15 | 1 | -3/+3 |
|\ | | | | | | | and 'a70931899dfcc15fe8aa2ace40712717859afe50' | ||||
| * | Doxygen comment | lloyd | 2008-10-15 | 1 | -3/+3 |
| | | |||||
* | | Clean up VC++ ia32 asm a bit, use new defs of word3_muladd* from generic ↵ | lloyd | 2008-10-15 | 1 | -49/+28 |
| | | | | | | | | mp_asmi.h | ||||
* | | Fix include of mp_asm.h in mp_ia32_msvc/mp_asmi.h (used quotes instead of ↵ | lloyd | 2008-10-15 | 3 | -6/+6 |
|/ | | | | brackets) | ||||
* | Fixup Doxygen error | lloyd | 2008-10-14 | 1 | -3/+3 |
| |