aboutsummaryrefslogtreecommitdiffstats
path: root/modules
Commit message (Collapse)AuthorAgeFilesLines
* Don't need ELF systems, all intrinsicslloyd2008-09-181-9/+0
|
* Add a module which swaps out the SHA-1 implementation with one writtenlloyd2008-09-184-0/+442
| | | | | | in SSE2 intrinsics by Dean Gaudet <[email protected]>, which he placed in the public domain. Compared to the C++ compiled with 4.3.1, it is something like 35% faster on a Core2 processor - a pretty nice improvement!
* Add asm to access high res timer on IA-64, HP-PA, S390xlloyd2008-09-182-3/+19
|
* Move biging_wordmul inlined into the only place where it is used,lloyd2008-09-171-5/+29
| | | | | | the mp_asm64 module. It is called only on systems like UltraSPARC which have 64 bit registers/ALU but no native 64x64->128 bit multiplication operation.
* Disable VC x86 asm from loading by default, some tests failinglloyd2008-09-171-1/+1
|
* Update to 8 word linmul2. Fix word8_madd3lloyd2008-09-171-11/+41
|
* Add yet another version of the Visual C++ x86 asm by Luca Piccarreta,lloyd2008-09-171-14/+154
| | | | | | | | | | this version adding an SSE2 implementation of word8_linmul3 (though Luca added a comment noting that it was slower than the plain x86 version). I'm not intentionally checking these versions in order, this just happened to be the order I found them in! This version was dated 2006-01-23
* Update the Visual C++ assembler with another version also by Luca Piccarretalloyd2008-09-171-144/+231
| | | | which uses 8 word blocks. This version was dated 2006-01-22
* Reindentlloyd2008-09-171-103/+105
|
* Add some inline assembler for x86 systems using Visual Studio'slloyd2008-09-172-0/+305
| | | | | | | | | inline asm syntax. This code was written and submitted by Luca Piccarreta in 2006. Sometimes it takes a while for me to work through patches. It does not implement the right functions (using 4 word blocks instead of 8), so it will not work and of course also has not been tested at all.
* Avoid old C-style castslloyd2008-09-171-6/+21
|
* Small cleanupslloyd2008-09-171-3/+14
|
* Make some module descriptions more succint/usefullloyd2008-09-175-5/+5
|
* Fix some bit rot in the OpenSSL enginelloyd2008-09-163-6/+6
|
* Load asm_amd64 only on requestlloyd2008-09-101-1/+1
|
* Add (incomplete) x86-64 mp_mulop variantlloyd2008-09-102-0/+95
|
* Undef macros at end of headerslloyd2008-09-092-1/+11
|
* New (GCC-generated) code for bigint_monty_redc)lloyd2008-09-081-110/+252
|
* Do not enable by defaultlloyd2008-09-071-1/+1
|
* asm_amd64/lloyd2008-09-074-15/+227
| | | | Check in current state of the x86-64 assembly
* Disable mp_mulop.S until updatedlloyd2008-09-071-3/+3
|
* Disable mp_mulop.S until updatedlloyd2008-09-071-2/+2
|
* Fix call to asmlloyd2008-09-071-1/+1
|
* Rename alg_amd64 to asm_amd64lloyd2008-09-076-8/+117
| | | | | | Namespace exposed SHA-1 function with botan_ prefix. Add start of mp_monty for x86-64 assembly
* Rename alg_ia32 module to asm_ia32, which is more reflective of actuallloyd2008-09-0711-5/+5
| | | | | | | | contents. Rename sha1core.S to sha1_asm.S, and rename the extern "C" function from sha160_core to botan_sha160_asm_ia32 so it is clear what it is and so it is reasonably namespaced.
* Disable all-asm mp_mulop for nowlloyd2008-09-051-2/+2
|
* Split byte swap code and word rotation code off into bswap.h and rotate.hlloyd2008-09-023-92/+37
|
* Replace some C-style casts with C++ named casts in bzip2 and zliblloyd2008-08-302-11/+11
|
* Make the header guard macros for the x86 and x86-64 asm_macr.h headerlloyd2008-08-272-6/+14
| | | | | | | unique. Add a note for the GNU linker specifying we are using a non-executable stack (requested by both Gentoo and SuSE)
* Cleaner flags: define MAP_NOSYNC to zero ifndef, always use itlloyd2008-08-271-5/+5
|
* Include mp_asm.h in mp_asmi.h in both of the assembly modules, forlloyd2008-07-192-2/+2
| | | | consistency with the C++ headers.
* If MAP_NOSYNC is defined, pass it as a flag to mmap. Apparently onlloyd2008-07-171-1/+7
| | | | | | | | | | | | FreeBSD, by default the VM will sync dirty pages periodically, even if the pages do not need to be reclaimed. Since in this case the contents of the map will contain sensitive information, try to avoid that. The FreeBSD 7.0 man page for mmap also warns that severe file fragmentation can result from using MAP_NOSYNC with sparse files, which we are currently using. It recommends instead explicitly writing out zero bytes. Since typically the full range of pages in the file will be eventually accessed and modified, this doesn't seem like a problem.
* Use NULL instead of 0 for execl terminatorlloyd2008-07-131-1/+1
|
* Remove unnecessary inclusion of botan/config.h in several moduleslloyd2008-06-305-5/+0
|
* The change in rev f6d0cb6f9569d228ed6a11d021c3f57f55220bde was actuallylloyd2008-06-261-4/+4
| | | | | | | | | | | completely wrong, and it is rather disturbing I made that mistake. The poll() function will gather up to the number of bytes passed as its argument; it will do this by opening up files and reading up to 1024 bytes from each one. So we might open between 256 and 256*1024 files, depending on the sizes of them (ignoring empty files, which count for zero bytes). (Idea: also include the name of the file in the output? Is that useful?) Move the read_buf out of the loop to minimize allocator thrashing.
* ew_ftw was reading up to 32 Mb for a fast poll and 256 Mb for a slow poll.lloyd2008-06-221-2/+2
| | | | That seems excessive. Reduce to 32 Kb and 256 Kb (resp).
* New, much cleaner (and thread safe) implementation of es_ftWlloyd2008-06-172-59/+97
|
* Remove unneeded inclusion of <fstream>lloyd2008-06-161-1/+0
|
* Move the declaration of the RandomNumberGenerator base class from base.hlloyd2008-06-103-3/+3
| | | | to rng.h (eventually base.h will be split up entirely and go away)
* propagate from branch 'net.randombit.botan' (head ↵lloyd2008-04-171-2/+0
|\ | | | | | | | | | | 85596a0b1fbee6696261d36def7dad742375f7d9) to branch 'net.randombit.botan.remove-libstate' (head faf75eec422a3eb6108748315724fb6ac217dede)
| * propagate from branch 'net.randombit.botan' (head ↵lloyd2008-04-121-2/+0
| |\ | | | | | | | | | | | | | | | bcae6a19d8d96ebde33c832c76a130ea02bc923a) to branch 'net.randombit.botan.remove-libstate' (head f640991b6e433a264f5d22a08338cfc9c24c82da)
| | * propagate from branch 'net.randombit.botan' (head ↵lloyd2008-04-101-2/+0
| | |\ | | | | | | | | | | | | | | | | | | | | 6afe2db1f710f75bc27e189bb8bdb23613ce1ca3) to branch 'net.randombit.botan.remove-libstate' (head e40f0dbdfd847024c30fa0092c2acefc19a550b8)
| | | * In Botan, the Timer base class provides access to a high-resolutionlloyd2008-04-071-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | 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...
* | | Make the memory allocator's chunk size a compile time constant, via alloyd2008-04-121-1/+0
| | | | | | | | | | | | new build.h macro BOTAN_MEM_POOL_CHUNK_SIZE
* | | Fix some relatively minor linker namespace pollution issueslloyd2008-04-114-33/+29
|/ /
* | Remove severa global configuration variables related to entropy gathering,lloyd2008-04-108-35/+18
| | | | | | | | instead passing those values as arguments.
* | Remove the config option rng/ms_capi_prov_type - the CryptoAPI entropylloyd2008-04-101-8/+3
| | | | | | | | | | source will default to using the PROV_RSA_FULL provider if an empty string is passed to the constructor.
* | Fix some completely bogus code in zlib.cpp that was causing compilation ↵lloyd2008-04-101-8/+8
| | | | | | | | | | | | failures. Seemingly from a bad merge around Christmas?
* | Change the copyrights in all files in the Botan tree to directly reflectlloyd2008-04-1082-83/+96
|/ | | | | | the actual copyright holders. For rationale, see my post to botan-devel on April 9, subject 'Changing license to directly reflect contributors' (http://www.randombit.net/pipermail/botan-devel/2008-April/000527.html)