aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Remove needless include of mutex.hlloyd2008-11-081-1/+0
|
* Rename eng_def.h to def_eng.hlloyd2008-11-0810-9/+9
|
* Add virtual hook to remove dep of Default_Engine on Engine itselflloyd2008-11-083-16/+14
|
* Remove dependency on Default_Engine from pubkey codelloyd2008-11-0811-112/+145
|
* Remove get_mgf - unsused internally, and I doubt apps use it muchlloyd2008-11-082-26/+0
|
* Invoke HMAC constructor directly for PBKDF2 since it is hardcoded anywaylloyd2008-11-081-1/+2
|
* Add def_engine info.txtlloyd2008-11-081-0/+15
|
* Add missing engine info.txtlloyd2008-11-081-0/+11
|
* Add libstate dep on def_enginelloyd2008-11-081-0/+1
|
* Move most of the Default_Engine code into engine/def_engine, and thelloyd2008-11-0811-10/+0
| | | | engine base classes into src/engine
* Move botan.h from utils to libstate, since libstate has lookup.h whichlloyd2008-11-084-13/+5
| | | | | | botan.h includes unconditionally. Remove obsolete seed_rng code from init.h
* Split the last parts of the 'core' modulelloyd2008-11-0836-73/+131
| | | | Add some missing info.txts
* Move most of what was left in core to utils (since that is what they are,lloyd2008-11-088-11/+7
| | | | | basically). buf_comp and data_src might need their own directory, but it doesn't really feel like it.
* Move allocate.h with related code in alloclloyd2008-11-083-1/+1
|
* Continue to dismantle the core module (aka ball of mud), moving allocatorlloyd2008-11-085-4/+0
| | | | code to alloc/ subdirs
* Move mutex.h from core to utilslloyd2008-11-086-10/+2
| | | | Move core/sym_algo.{h,cpp} to sym_algo
* Split ciphers into block and stream ciphers. Move base class headerslloyd2008-11-08105-3/+4
|
* Split base.h into block_cipher.h and stream_cipher.hlloyd2008-11-0863-48/+278
| | | | | | It turned out many files were including base.h merely to get other includes (like types.h, secmem.h, and exceptn.h). Those have been changed to directly include the files containing the declarations that code needs.
* Move declaration of StreamCipher to stream_cipher.hlloyd2008-11-0811-86/+13
|
* Move hash.h from src/core to src/hashlloyd2008-11-085-132/+20
| | | | Inline constructors for BlockCipher and StreamCipher
* Inline BufferedComputation into the header (all functions were very short)lloyd2008-11-083-97/+30
|
* Move BufferedComputation to new buf_comp.{h,cpp}lloyd2008-11-0813-166/+236
|
* Move mac base classes from src/core to src/maclloyd2008-11-083-16/+0
|
* Move declaration of MessageAuthenticationCode base class to mac.h (from base.h)lloyd2008-11-0816-55/+73
|
* Move the declaration of the HashFunction base class to a new header hash.hlloyd2008-11-0828-53/+77
| | | | (from base.h)
* Remove unneeded include of <memory>lloyd2008-11-082-2/+0
|
* Split lookup_misc.cpp into lookup_mac.cpp and lookup_s2k.cpplloyd2008-11-084-180/+162
|
* Split def_alg.cpp into lookup_{cipher,hash,misc}.cpplloyd2008-11-084-308/+394
|
* In Makefiles and pkg-config / botan-config, use -lbotan-@{var:version}lloyd2008-11-074-4/+4
| | | | | | | | so we link against the specific intended version of the library, for instance -lbotan-1.7.20 rather than simply -lbotan This again seems especially an improvement where you want more than one version installed (1.6 vs 1.7, for instance).
* Don't hard code name in botan-config.inlloyd2008-11-071-1/+1
|
* Cache device descriptors in Device_EntropySourcelloyd2008-11-072-34/+45
|
* In HMAC_RNG, periodically fast poll a source while operating normally.lloyd2008-11-072-46/+32
| | | | | Generate new XTS (extractor salt) values using PRF outputs rather than the clock.
* HMAC_RNG will only check to see if it should reseed once per calllloyd2008-11-071-60/+47
| | | | | | | | | | | | to randomize(), at the start of the function. After that it will generate as many outputs as needed. The counter cannot overflow, as only up to 2**32 bytes can be requested per call to RandomNumberGenerator::randomize, wheras HMAC_RNG can generate 32 bytes (256 bits) per counter value and uses a 32-bit counter. The PRF is 'stepped' once after the call to RandomNumberGenerator::randomize is completed. This reduces the window of exposure to data that was already output for use by the RNG.
* Swap workspace and prod vars in botan-config.in, easier to enable workspace uselloyd2008-11-071-5/+5
|
* Reformat for shorter lineslloyd2008-11-072-6/+19
|
* Add a check for empty string in CMS_Encoder::can_compress_with (mostly to ↵lloyd2008-11-071-0/+3
| | | | avoid warning)
* Provide pkg-config file as botan-$major$minor.pc, so it can be used like:lloyd2008-11-062-5/+5
| | | | | | | $ pkg-config botan-17 --libs -L/usr/local/lib -lbotan -lm -lpthread -lrt to make it easier to have multiple versions of Botan installed and in use at the same time.
* Fix zlib macro checklloyd2008-11-061-7/+7
|
* Disable final upper bound limit since the min takes care of itlloyd2008-11-061-5/+1
|
* Move Entropy_Estimator to utils/entropy.h (from anon namespace in HMAC_RNGlloyd2008-11-068-101/+157
| | | | | implementation), remove freestanding estimate_entropy function, change Randpool to use entropy estimator.
* In Salsa20, move the state counter increment out of core salsa20() functionlloyd2008-11-061-5/+10
|
* Add a comment about trying non-precomputed LSFR offsets (it was significantlylloyd2008-11-061-9/+16
| | | | | slower on my machine). Some formatting changes. Make OFFSETS table static const.
* Add fast_poll implementationlloyd2008-11-042-3/+12
|
* Use Opteron as default submodel, otherwise bogus GCC flags if only arch ↵lloyd2008-11-041-1/+1
| | | | detected (as on FreeBSD)
* Disable x86-64 SHA-1 asm for FreeBSD. FreeBSD 7.0 at least did not likelloyd2008-11-041-1/+0
| | | | the current version.
* Formattinglloyd2008-11-031-2/+9
|
* Formattinglloyd2008-11-031-19/+18
|
* Remove unused entries from offsets tablelloyd2008-11-031-22/+26
|
* Remove more indexing problems from Turing::generate. Benchmarks 306 MiB/sec ↵lloyd2008-11-031-21/+17
| | | | on Q6600
* Further simplify indexing in Turing::generate - slightly faster, but not yet ↵lloyd2008-11-031-18/+20
| | | | at 300 MiB/s