aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Move ASN1_Tag from enums.h to asn1_int.h. The enums.h header is a totallloyd2008-04-242-38/+37
| | | | | | grab back of stuff, most of which are not used outside of very specific contexts, and some only internally. I am thinking to remove it and put each individual enum in an appropriate header.
* Remove stray character introduced during mergelloyd2008-04-241-1/+1
|
* Remove unused Pulse_Type enumlloyd2008-04-241-15/+0
|
* Remove section on pulses - removedlloyd2008-04-241-44/+0
|
* merge of '0bd31c0935789c0b8280f297b711d935192280f1'lloyd2008-04-243-3/+3
|\ | | | | | | and '6f5dcbc7a639a21e1e41ad092a36933f87f81b91'
| * Add BOTAN_DLL to Timer class declarationlloyd2008-04-211-1/+1
| |
| * propagate from branch 'net.randombit.botan' (head ↵lloyd2008-04-2141-615/+214
| |\ | | | | | | | | | | | | | | | 51f9ee5180a5cacdfff31504266e883b7bb0eb00) to branch 'net.randombit.botan.remove-libstate' (head 636b767b9686261418b1cb45a6271edeef87501b)
* | \ propagate from branch 'net.randombit.botan' (head ↵lloyd2008-04-2141-615/+214
|\ \ \ | |/ / |/| / | |/ | | | | 51f9ee5180a5cacdfff31504266e883b7bb0eb00) to branch 'net.randombit.botan.remove-libstate' (head 636b767b9686261418b1cb45a6271edeef87501b)
| * propagate from branch 'net.randombit.botan' (head ↵lloyd2008-04-1741-614/+213
| |\ | | | | | | | | | | | | | | | 85596a0b1fbee6696261d36def7dad742375f7d9) to branch 'net.randombit.botan.remove-libstate' (head faf75eec422a3eb6108748315724fb6ac217dede)
| | * propagate from branch 'net.randombit.botan' (head ↵lloyd2008-04-1341-614/+213
| | |\ | | | | | | | | | | | | | | | | | | | | 4b88c5d653d997e87cc333064ca1624636fc2186) to branch 'net.randombit.botan.remove-libstate' (head 58c8bf4a26a93475d86418d899d7f7202263d4ae)
| | | * propagate from branch 'net.randombit.botan' (head ↵lloyd2008-04-1241-614/+213
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | bcae6a19d8d96ebde33c832c76a130ea02bc923a) to branch 'net.randombit.botan.remove-libstate' (head f640991b6e433a264f5d22a08338cfc9c24c82da)
| | | | * propagate from branch 'net.randombit.botan' (head ↵lloyd2008-04-1041-614/+213
| | | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6afe2db1f710f75bc27e189bb8bdb23613ce1ca3) to branch 'net.randombit.botan.remove-libstate' (head e40f0dbdfd847024c30fa0092c2acefc19a550b8)
| | | | | * Remove the Global_RNG namespace, along with rng.h and rng.cpp. This waslloyd2008-04-0721-141/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | essentially a facade for the RNG object living in the global library state. Rewrite all callers to directly invoke the global state object: this makes it more clear what functions are actually accessing mutable state outside of the normal reference graph (and thus, which functions will have to be altered in order to remove this dependency). Other facades remain in place for the configuration object and the memory allocator factory.
| | | | | * Remove X509_GlobalState in favor of static function Extensions::get_extensionlloyd2008-04-076-144/+25
| | | | | |
| | | | | * propagate from branch 'net.randombit.botan' (head ↵lloyd2008-04-072-19/+25
| | | | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | db3791f6bba4b57dd8aed17893565dc5bcd68f02) to branch 'net.randombit.botan.remove-libstate' (head 627d12447b2bb32aa08ff5daa499ac9580a77a05)
| | | | | * | Remove Charset_Transcoder; hardwire UTF-8/Latin-1 conversions into charset.cpplloyd2008-04-078-202/+101
| | | | | | |
| | | | | * | In Botan, the Timer base class provides access to a high-resolutionlloyd2008-04-0711-59/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | timer with an unspecified update rate and epoch. It is only used inside the entropy sources to provide some timing-dependent randomness. However, it is easier and basically 'as good' to treat the timers as entropy sources in their own right and feed their output directly into an entropy pool. This commit removes Library_State::system_clock and all calls to that function.
| | | | | * | Library_State::set_timer is never called from within Botan, low hanginglloyd2008-04-072-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | fruit for removal.
| | | | | * | The intent of this branch is to remove the global library state objectlloyd2008-04-076-58/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (Library_State, in libstate.{h,cpp}). It causes numerous 'interesting' problems with threads, etc, and the best solution here is to move to more or less an object-capability model, where the only objects that a piece of code can access are those which can be referenced through its arguments. First things first, remove the UI 'pulse' code. It is neither necessary nor sufficient for writing proper GUI/event driven code using Botan, has likely never been used in real code, and, given that, causes a distressing amount of overhead in terms of function calls made.
* | | | | | | Add BOTAN_DLL macro in all needed spots for working DLL export. Basedlloyd2008-04-21153-491/+571
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on a patch from Joel Low for MSVC, modified and tested with GCC using -fvisibility=hidden and the visibility attribute. Getting this working completely requires making the shared object and static lib builds completely distinct (which is also a win since it allows avoiding -fPIC usage, etc in the static lib). Currently too many things are being exported, though it is an improvement as internal-only code like the bigint_* functions are hidden.
* | | | | | | Update Fixed_Output_RNG (used for testing) to implement is_seededlloyd2008-04-211-0/+2
| | | | | | |
* | | | | | | Make RandomNumberGenerator::is_seeded pure virtuallloyd2008-04-211-1/+1
| | | | | | |
* | | | | | | Convert date format in log.txt to YYYY-MM-DD for easier grepping and statisticslloyd2008-04-171-100/+100
|/ / / / / /
* | | | | | Add first change notes about the upcoming 1.7.6lloyd2008-04-172-1/+5
| | | | | |
* | | | | | Always set the position to the start of the block when generating a newlloyd2008-04-151-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | block of data in the X9.31 PRNG (previously, adding entropy would cause a new block to be computed but the read pointer would be the same as it had been in the old block). Nominally this is very slightly faster (we don't throw away bytes we just computed) but the change is more to make the code more obvious/explicit; I was surprised by its old behavior, which seems bad. In theory it could introduce additional weaknesses, if gaining advantage to this partial block that was being thrown away assisted in an attack (I do not know of any attacks against the X9.31 PRNG that work that way, however).
* | | | | | merge of '0aa1d27dec5a97856953bb1fcffe29a84c68b3ac'lloyd2008-04-151-2/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | and 'ed4893ff06b11d74a03afdd3d4a99672045ab68e'
| * | | | | | Optimizations had been disabledlloyd2008-04-141-2/+2
| | | | | | |
* | | | | | | Drop eng_aep module (the hardware AEP engine). I still have a card (and driverlloyd2008-04-148-815/+0
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | sources, etc), but drivers for x86-64/2.6 are not in evidence these days. To test this I would probably have to get a 32-bit machine running ~RH9/2.4 kernel...
* | | | | | merge of '34be1e0ad58e29063ea95d33f2cdc090fd63c4b2'lloyd2008-04-1411-26/+29
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | and 'fcc3affb2faabb6cf819877452cfc88201d4e1a0'
| * | | | | | Document that shared builds would be nicelloyd2008-04-131-0/+6
| |/ / / / /
| * | | | | Put each file in a list in the makefile on a different linelloyd2008-04-131-11/+8
| | | | | |
| * | | | | Change so_obj_flags to shared_flagslloyd2008-04-131-4/+4
| | | | | |
| * | | | | Rename so_obj_flags variable to shared_flagslloyd2008-04-139-11/+11
| | | | | |
* | | | | | Consolidate all logfiles into a single log.txt organized by time. Easierlloyd2008-04-1412-1074/+1074
|/ / / / / | | | | | | | | | | | | | | | to grep through.
* | | | | Enabled shared objects on windowslloyd2008-04-131-1/+1
| | | | |
* | | | | Add lines for setting dll_import_flags and dll_export_flags to all thelloyd2008-04-1312-2/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | compilers. Currently all are empty except MSVC. This is getting messy... but libtool is not great either. Maybe there should be two totally distinct builds, static and shared?
* | | | | Make a BOTAN_DLL macro in build.hlloyd2008-04-131-0/+4
| | | | |
* | | | | If an unbound variable in a template is found, print the all thelloyd2008-04-131-24/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | currently existing variables and the first 60 characters of their values. Simplify match_any_of - it just uses it's first two arguments and then matches against the rest, rather than forcing them to be joined into a single string (that it would just split and iterate over anyway). Add support for two new compiler config vars, dll_import_flags and dll_export_flags When autoconfig prints that it has guessed something, provide the name of the variable that can be used to override it.
* | | | | Copyrighting a generated file seems kind of silly, though it would belloyd2008-04-121-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | good if configure.pl put some more useful information in build.h, such as the time it was run and the arguments it was given.
* | | | | Final updates for 1.7.5 release1.7.5lloyd2008-04-122-2/+2
|/ / / /
* | | | Updates for 1.7.5, now tentatively planned for tomorrow.lloyd2008-04-122-18/+17
| | | |
* | | | Remove setting of unused blinder_size config varlloyd2008-04-121-1/+0
| | | |
* | | | Modify areas that still assumed Pipe::message_id was exactly a u32bit.lloyd2008-04-126-35/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was done by replacing Pipe::message_id with a completely opaque type and adding only the necessary operations. In this revision Pipe::message_id does remain a u32bit. However it may become an opaque type in the future. Move the Invalid_Message_Number exception to Pipe since that is the only piece of code which throws it.
* | | | Use existing reference to p in Elg_Core constructor for small code cleanuplloyd2008-04-121-2/+2
| | | |
* | | | In decimal string inputs: ignore spaces, and for other bad inputs throwlloyd2008-04-121-0/+7
| | | | | | | | | | | | | | | | an exception saying so.
* | | | Make the size of the random value used to blind the private keylloyd2008-04-122-15/+5
| | | | | | | | | | | | | | | | operations (to prevent timing attacks) a compile time constant.
* | | | Remove Config::option_as_u32bit - the only advantage it had over callinglloyd2008-04-127-42/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to_u32but on the return value from Config::option was that it passed it through parse_expr, which did some simple evaluation tricks so you could say 64*1024. That does not seem worth the cost in code, especially because most of the values so controlled are probably never changed. By making them compile time constants, additional optimizations are possible in the source as well as by the compiler. Remove the pkcs8_tries config option. Hardcode that value to 3 instead. I want to rewrite that code in the relatively near future and all that will (hopefully) go away.
* | | | Make the memory allocator's chunk size a compile time constant, via alloyd2008-04-126-26/+4
| | | | | | | | | | | | | | | | new build.h macro BOTAN_MEM_POOL_CHUNK_SIZE
* | | | Update the changeloglloyd2008-04-121-5/+4
| | | |
* | | | Fix some relatively minor linker namespace pollution issueslloyd2008-04-114-33/+29
| | | |