aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Mostly revert 2f4fd18182d5a75c40cd831e7ee3c314be5c57d6, only keep thelloyd2008-03-10437-437/+437
| | | | | updated dates on files that have actually changed this year. This makes the diff across versions readable again.
* Add to the todo: Tests for the simple functions (bigint_*, rotate_left, etc)lloyd2008-03-101-0/+4
|
* On NetBSD with GCC, define _NETBSD_SOURCE; according to a report on thelloyd2008-03-101-1/+1
| | | | Monotone mailing list, it was needed for a build.
* Unroll the loops in SHA_160::hash that unpack the input and perform thelloyd2008-03-091-4/+15
| | | | | expansion. While I would prefer to have the compiler to this, using GCC 4.1.2 it is 4% faster on a Core2 Q6600 with the loops partially unrolled.
* Add a version of bit_ops.h with bswapl/bswapq statements. The xor_buflloyd2008-03-092-0/+91
| | | | | | | | takes advantage of unaligned reads/writes being legal for some extra performance, but should be rewritten to use SSE2 and non-termporal writes. Most of the functions in bit_ops.cpp are implemented by x86-64, just not easily accessible from C++
* Increase the size of the buffers in ARC4 and WiderWake4+1 from 1K tolloyd2008-03-092-2/+6
| | | | DEFAULT_BUFFERSIZE (normally 4K); measurably faster on a Core2
* If the macro BOTAN_TARGET_UNALIGNED_LOADSTOR_OK (from build.h) is on,lloyd2008-03-091-0/+86
| | | | | | | | | | | | | the word read/write functions will be faster through the use of (slightly unsafe) pointer manipulations. On some CPUs (like SPARC), these antics can cause crashes (usually visible by SIGBUS) if what you are attempting to read or write as an integer is not aligned on a word boundary. However they are safe on x86 and x86-64. Performance increases across the board on a Core2. In most algorithms the improvement seems to be about 3%, except a few standouts like RC6 (15%), MD4 (20%), RIPEMD-128 (8%). Will be better with faster xor_buf and byte swapping.
* Rename offset_ variables to idx_lloyd2008-03-091-30/+30
|
* Avoid closing an invalid file descriptor, even though it is basicallylloyd2008-03-091-1/+1
| | | | harmless, to avoid a valgrind warning
* Alas, my definition of the new improved reverse_bytes for 64-bit values waslloyd2008-03-091-2/+5
| | | | wrong, and didn't work at all. New corrected (and tested) version.
* Alter bigint_madd2 and bigint_madd3 to take only 3 (4, resp) arguments,lloyd2008-03-097-53/+56
| | | | | | | with the last one being both one of the input values and the output carry register, since almost always they were in fact the same variable. Also update the x86 and x86-64 modules.
* Also inline xor_buf, both for immediate effeciency gains and for futurelloyd2008-03-092-37/+31
| | | | writing of it in assembly.
* Put reverse_bytes into bit_ops.h so they can be inlined. Rewrite the versionlloyd2008-03-082-33/+17
| | | | | | | for 64-bit to not use 64-bit constants - that way GCC won't complain everwhere. Plan is for a module to replace all of these with asm (bswap, xchg on x86), at least for x86-64
* Mass update of the copyright date. Honestly I don't know why I bother,lloyd2008-02-14455-455/+455
| | | | | | | 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.
* Pass the second argument of works_on as a reference, requires slightlylloyd2008-02-141-5/+6
| | | | fewer explicit coercions.
* 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).
* Wrap to 80 columnslloyd2008-01-241-7/+7
|
* Update readme.txt and changelog with 1.7.3 information1.7.3lloyd2008-01-232-7/+8
|
* Reorder the output of configure.pl --help so the most important and mostlloyd2008-01-221-27/+28
| | | | commonly used options are near the top.
* Fix pk_bench.cpp compilation (remove a stray try statement)lloyd2008-01-171-3/+2
|
* merge of '3d9e9476c5b2a2ee125eee7e0dd10bfe460d0546'lloyd2007-12-24208-2110/+1788
|\ | | | | | | and '9fe0310805932b889bdfa17c9213f2b97d47ab6a'
| * 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 short comment describing Turing::fixedSlloyd2007-11-191-1/+1
| |
| * Change the default list of PRNG devices fromlloyd2007-11-171-1/+1
| | | | | | | | | | | | | | | | | | /dev/urandom /dev/random to /dev/random /dev/srandom /dev/urandom because the es_dev module can handle reads from devices that may block without ever blocking for an unbounded amount of time.
| * Drop es_file: replaced by es_devlloyd2007-11-173-61/+0
| |
| * Add a hook for the es_dev module in Builtin_Moduleslloyd2007-11-171-0/+8
| |
| * 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.
| * Replace C-style casts with static_cast (found by GCC's -Wold-style-cast)lloyd2007-11-172-6/+5
| |
| * Add base64 encoding and decoding to the set of benchmarked filterslloyd2007-11-161-0/+3
| |
| * Mark start and end as const in karatsuba_size since they are never modifiedlloyd2007-11-161-2/+2
| | | | | | | | after assignment.
| * Revert the change that renamed append() to push_back(). As pointed outlloyd2007-11-1517-49/+47
| | | | | | | | | | | | 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.
| * The porting doc describes how to port code from Botan 1.2 to 1.4, butlloyd2007-11-151-144/+0
| | | | | | | | | | doesn't go beyond that. Since 1.4 itself is pretty obsolete, and 1.6 is now in wide use, just drop the doc in mainline
| * Update log to mention the recent rename of append to push_backlloyd2007-11-141-1/+2
| |
| * Rename MemoryRegion::append to push_backlloyd2007-11-1416-47/+48
| | | | | | | | Change all callers in the library and self-test code.
| * Remove the ability to load an external configuration file. Applicationslloyd2007-11-146-482/+0
| | | | | | | | | | | | | | | | | | | | | | needing this functionality probably already have a preexisting configuration system that they would rather use. Also remove the documentation about this feature, and the example configuration (which was pretty out of date, anyway). RFC on this change sent to the mailing list on 11-13-2007, no responses after 24 hours. It seems quite likely this code is not in use anywhere.
| * merge of '3302429a7b66a2e175af0e12870f150aaf81445e'lloyd2007-11-121-2/+0
| |\ | | | | | | | | | and '9f004fd94273d5449388f933f767d6d5c24068d8'
| | * Remove unused include of assert.hlloyd2007-11-071-2/+0
| | |
| * | Remove amd64 support from the mp_asm64 module. Use mp_amd64 instead.lloyd2007-11-112-10/+1
| | |
| * | Make IDEA::mul_inv just a function in an anonymous namespace, since it reallylloyd2007-11-112-39/+36
| | | | | | | | | | | | had no reason/need to be a class method.
| * | Remove some static_casts that weren't required and didn't do much to makelloyd2007-11-111-11/+11
| | | | | | | | | | | | the code more readable/explicit either.
| * | Have IDEA's mul() return the result instead of altering a reference value.lloyd2007-11-111-13/+25
| | | | | | | | | | | | | | | | | | Split up some lines for readability. Benchmarks somewhat slower than the previous version (34.3 vs 32.0 on my Core2, gcc 4.1.2), will need to investigate.
| * | Add /Zi to debug flags for Visual Studiolloyd2007-11-111-1/+1
| | |
| * | Prevent lines > 80 columnslloyd2007-11-111-1/+1
| |/
| * Document the --no-asm optionlloyd2007-10-241-12/+15
| | | | | | | | | | | | | | | | | | | | Wrap lines a little tighter in the output of --help Change the order of checks so we don't display that a module was not used due to use of --no-asm when in fact the module would not run on the target CPU anyway. Similiarly don't say "loaded only on request" if it is incompatible with the target, since someone attempting to actually load the module would immediately get an error.
| * Fix flags for Core2 optimizations with Intel C++lloyd2007-10-231-1/+1
| |
| * Malloc_Allocator doesn't have a constructor anymore but the declarationlloyd2007-10-231-2/+0
| | | | | | | | remained, which caused link errors. Removed.
| * merge of '27e4f97cd587d56d2fb2f7819f2d1117565a7f28'lloyd2007-10-231-5/+5
| |\ | | | | | | | | | and '3b5a05478d1cfb7d4b10501d965228feae5b6dfa'
| | * Sort lines in .mtn-ignorelloyd2007-10-231-5/+5
| | |
| * | Switch the order of tests on constraints on modules to CPU, then OS, thenlloyd2007-10-231-9/+9
| |/ | | | | | | | | compiler. That tends to give the most useful diagnostic output, since CPU restrictions are the most common in modules.