aboutsummaryrefslogtreecommitdiffstats
path: root/modules
Commit message (Collapse)AuthorAgeFilesLines
* Mass update of the copyright date. Honestly I don't know why I bother,lloyd2008-02-1481-81/+81
| | | | | | | but might as well keep it up to date. And it's easier to do it once with a 'perl -pi' command than to update each file over time. Apologies to anyone looking at diffs.
* Fix compilation with GCC 3.2 - it doesn't like the :: namespace specificationlloyd2008-02-122-2/+2
| | | | for struct stat
* Mark es_dev as only running on Unix/Unix-like systems. Patch from Joel Low.lloyd2008-01-311-0/+16
| | | | | | | Has not been tested on all of the systems listed, and on many of them it won't be relevant anyway since /dev/random and company only exist on some of them (Linux, BSDs, recent Solaris, and it looks like recent AIX and HP-UX as well).
* Qualify (some) calls to functions in the global namespace using anlloyd2007-12-249-80/+78
| | | | | | explicit :: (it is unfortunate that there is no good way to detect all of such calls in an automated manner). Also use new-style casts in parts of the zlib code.
* Add a new module, es_dev, that will replace es_file. Instead of using C++lloyd2007-11-173-0/+153
| | | | | iostreams, it uses unbuffered Unix I/O syscalls and is careful to avoid blocking for more than short amounts of time.
* Revert the change that renamed append() to push_back(). As pointed outlloyd2007-11-151-1/+1
| | | | | | by Joel Low on the mailing list, the STL container types have only a single version of push_back(), along with variations of insert() for handling range-based appending.
* Rename MemoryRegion::append to push_backlloyd2007-11-141-1/+1
| | | | Change all callers in the library and self-test code.
* Remove amd64 support from the mp_asm64 module. Use mp_amd64 instead.lloyd2007-11-112-10/+1
|
* Change the syntax from load_on: to load_on (since that way configure.pl canlloyd2007-10-2227-28/+40
| | | | | | | | | | | use the generic variable reading routines). Instead of hardcoding the module sets (historically, 'unix', 'beos', and 'win32') into the script, have each module specify which group(s) (if any) it should be considered a member of in its modinfo.txt file. Add a new module set compression which contains (currently) the zlib and bzip2 modules.
* Remove several uses of old style C casts in favor of C++98's static_cast and lloyd2007-10-192-3/+3
| | | | reinterpret_cast
* Fix the alg_ia32 module code WRT the recent changes to loadstor.h not beinglloyd2007-10-194-4/+4
| | | | included by bit_ops.h
* bit_ops.h no longer includes loadstor.hlloyd2007-10-191-1/+1
| | | | | | | | | Where loadstor.h was needed but only implicitly included via bit_ops.h, include it directly Add endian reversal functions to bit_ops.h Remove some unneeded includes in big_ops2.cpp and a few other files.
* Don't hard code any directories to search for programs into es_unix.lloyd2007-10-191-6/+1
| | | | | | | All are now specified through the config. The new default is just /bin, /sbin, /usr/bin, and /usr/sbin. Formerly /usr/ucb, /usr/etc, and /etc were also searched. If you want this behavior again you have to explicitly set the rng/unix_path configuration setting.
* Add stats of '/', '/tmp', '.', and '..' to the es_unix fast poll.lloyd2007-10-191-1/+12
| | | | Use u32bit instead of uint32_t
* New implementation of fast polling in es_unix. Instead of executinglloyd2007-10-192-41/+44
| | | | | | programs, the fast poll will just call a handful of simple Unix/POSIX functions like getpid, getuid, getrusage, etc. Identifying further useful sources would probably be helpful.
* Update the copyright notice to include 2007lloyd2007-09-132-2/+2
|
* Avoid some C-style casts in the moduleslloyd2007-07-234-4/+4
|
* Add QueryPerformanceCounter to the Win32 fast entropy poll, as it can'tlloyd2007-05-181-0/+4
| | | | hurt and might help. From Yves Jerschow.
* propagate from branch 'net.randombit.botan.stable' (head ↵lloyd2007-04-011-0/+1
|\ | | | | | | | | | | 63c067b5454498ee48466101aedb54613615a983) to branch 'net.randombit.botan' (head 2444e9d08f77852cf2df58c34ca38145c2f416ba)
| * Need to include stdlib.h for exit() call, reported through the Debianlloyd2007-04-011-0/+1
| | | | | | | | folks (I think this was also required under QNX, actually).
* | Check in an initial assembler implementation of SHA-1 for x86-64 systems.lloyd2007-03-124-9/+321
| | | | | | | | | | It is not amazingly optimized, about 5% faster than what GCC 4.1.1 does on my Core2 with the normal C++ code, but it's a start.
* | Insert a note so the toolchain knows that we are not using an executablelloyd2007-03-121-0/+4
| | | | | | | | | | | | | | | | | | stack. At least SuSE and Gentoo are using a patch for this in their trees, probably others are as well. I still have not had a chance to check the portability aspects of this, especially on Solaris (the only ELF-based x86/amd64 operating system that I know of that does not use the GNU toolchain).
* | Provide a more flexible mechanism for specifying which modules are loaded.lloyd2007-03-1227-18/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | Now three classes are defined: 'request', 'auto', and 'asm_ok'. The 'auto' class is loaded automatically if the platform support matches up with what we are building for (this is the former default). The 'request' mode means it is only loaded if specifically requested by name. The 'asm_ok' module is marked for all modules that use any assembler (including inline assembler). This normally functions like 'auto', unless --debug is passed to configure, in which case it is treated as 'request'. Modules which do not specify a load behavior are given a default of 'request'.
* | Small cleanups.lloyd2007-03-101-1/+1
| |
* | Clean up the x86-64 bigint_mul_add_words implementation a bit using thelloyd2007-03-081-9/+11
| | | | | | | | new register macros.
* | Add macros to represent register nameslloyd2007-03-081-1/+39
| |
* | Add Solaris to the allowed platforms for alg_amd64 and alg_ia32. Untested,lloyd2007-03-042-0/+2
|/ | | | but should work as Solaris is ELF-based.
* Bump copyright year to 2007lloyd2007-01-2077-77/+77
|
* Rename the mp_muladd source files to mp_muloplloyd2006-12-154-9/+4
|
* Update some modules which were never changed to use Allocator::get insteadlloyd2006-12-093-3/+3
| | | | of get_allocator()
* Also mark ICC as usable with the alg_ia32 modulelloyd2006-11-241-0/+1
|
* Enable the alg_amd64 module under Intel C++ as well (looks like ICC knowslloyd2006-11-241-0/+1
| | | | how to deal with .S asm files)
* Remove solaris from the list of OK platforms for assembly; Solaris aslloyd2006-11-062-2/+0
| | | | | doesn't seem to like the files for some reason that I don't feel like getting into right now.
* Use the new syntax for adding macros to build.h lloyd2006-10-111-2/+1
|
* Improve readability a bit with some additional macroslloyd2006-09-261-10/+12
|
* Define the ADD_IMM macro in terms of ADD()lloyd2006-09-261-3/+1
| | | | Remove the CLEAR_CARRY macro, which wasn't being used
* Better instruction scheduling, some higher level macros for readabilitylloyd2006-09-242-9/+18
|
* Initial x86-64 assembly code for the inner multiply-add loop.lloyd2006-09-243-0/+175
|
* Fix the clean and install targets in the makefileslloyd2006-09-094-4/+4
| | | | Clean up how help output is produced a bit further.
* Move the (commented out) gzip.cpp/gzip.h entries into the add file blocklloyd2006-09-031-4/+3
|
* Place the add_file/replace_file/ignore_file markers in the module infolloyd2006-09-0326-88/+136
| | | | | | files into blocks; makes a bit more sense, since there are potentially many arguments to each, and the current system was making it difficult to write a generic reader for the files.
* Remove explicit alignment settings before the loops; the loop macrolloyd2006-09-021-5/+2
| | | | | | | already sets alignment. Change the core multiply/add macro a bit; probably not any faster, but a bit cleaner.
* The assembly code is only using 81 words of W, but 84 were being allocated.lloyd2006-08-211-2/+2
|
* Remove a check for GCC in the source; that's what the module compilerlloyd2006-08-211-4/+0
| | | | restrictions are for.
* Rename some variables for consistency with the SHA-1 asm codelloyd2006-08-212-14/+16
|
* Get ride of an unnecessary register copylloyd2006-08-211-11/+9
|
* Inside the compression function, store the original stack pointer in thelloyd2006-08-212-28/+38
| | | | | W array, and then use %esp to point to the message words. This gives an extra register for temporary usage.
* Let SHA_160::W be resized dynamically; potentially the asm version couldlloyd2006-08-211-0/+8
| | | | use a little extra workspace, this makes that simpler to do.
* Somewhat ineffectual instruction reorderings in the round functionslloyd2006-08-211-28/+28
| | | | | Use EDX instead of EBP for holding the pointer to the digest array at the end of the function.
* Rotate the temporary variable along with the chaining variables; giveslloyd2006-08-211-175/+154
| | | | some further room for optimization.