Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Check in a change from Yves Jerschow optimizing the HMAC key schedule. | lloyd | 2007-05-15 | 1 | -5/+11 |
| | | | | | Seems to be about 2-3 times faster in the case where the key is smaller than the hash's block size, which is almost always the case. | ||||
* | propagate from branch 'net.randombit.botan.stable' (head ↵ | lloyd | 2007-04-25 | 1 | -11/+1 |
|\ | | | | | | | | | | | 8a2b79c64a13d3f70b0211d4f985a678951a9663) to branch 'net.randombit.botan' (head 677686443a5bb53b03d147999947448a9dc2679a) | ||||
| * | Check in a working fix for the mem_pool issues encountered by some Visual | lloyd | 2007-04-25 | 1 | -11/+1 |
| | | | | | | | | Studio users. | ||||
| * | Revert the last change; it actually broke the memory allocators in a | lloyd | 2007-04-23 | 1 | -1/+1 |
| | | | | | | | | fairly massive way. | ||||
| * | Fixes for Visual C++ 2005; it wasn't picking up the needed conversion | lloyd | 2007-04-23 | 1 | -2/+3 |
| | | | | | | | | from a void* to a Memory_Block, so call the constructor explicitly. | ||||
* | | Small cleanups. | lloyd | 2007-03-10 | 1 | -1/+0 |
| | | |||||
* | | Add new OIDs for Rabin-Williams and Nyberg-Rueppel keys and signatures. | lloyd | 2007-03-10 | 1 | -0/+23 |
| | | | | | | | | | | These were allocated out of my IANA assigned arc, which is documented at http://www.randombit.net/text/oids.html | ||||
* | | Catch exceptions in OIDS::lookup and rethrow a Lookup_Error. Attempting to | lloyd | 2007-03-10 | 1 | -2/+10 |
| | | | | | | | | | | | | encode a public key that did not have an OID for its key format resulted in a very confusing exception (thrown from char2digit) that was completely meaningless to anyone. | ||||
* | | Move the version query code out of base.cpp and into version.cpp; I have | lloyd | 2007-03-08 | 2 | -18/+28 |
| | | | | | | | | | | | | | | a feeling I may want to perform automated source changes to the version strings (eg, to insert a monotone revision ID), but I'd just as soon perform such operations on as small a file as possible to limit any damage that might occur due to a source code rewriting script gone awry. | ||||
* | | Inline the definition of Tiger::round into Tiger::pass, which was its only | lloyd | 2007-03-07 | 1 | -21/+55 |
| | | | | | | | | | | | | caller. The resulting code is longer and somewhat harder to read, but it's giving 25-30% performance increases on my Core2, and something a bit lower but still measurable on the P4. | ||||
* | | Add startup selftests for SHA-256 and HMAC(SHA-256) | lloyd | 2007-03-04 | 1 | -0/+18 |
| | | |||||
* | | Introduce a class Seed which represents the domain parameter seed, rather | lloyd | 2007-03-04 | 1 | -15/+30 |
| | | | | | | | | than using an unadorned buffer with the increment() function. | ||||
* | | Use prefix rather than postfix increment in places where it can be used. | lloyd | 2007-03-03 | 4 | -6/+6 |
| | | |||||
* | | Alter one of the constructors of DL_Group to take a parameter specifying | lloyd | 2007-03-03 | 2 | -36/+56 |
| | | | | | | | | | | | | | | | | | | how big q should be. Add FIPS 186-3 DSA parameter generation, this allows for generating larger (2048 and 3072 bit) DSA keys. At this time there do not seem to be official test vectors for 186-3, and I have not checked against other implementations. Tests will be constructed using the latest OpenSSL snapshot. | ||||
* | | BigInt::operator[] now guards against accesses that are larger than the | lloyd | 2007-03-03 | 1 | -0/+17 |
| | | | | | | | | current register size; reads return 0, writes extend the buffer. | ||||
* | | Add a version of BigInt::binary_decode taking a MemoryRegion of bytes | lloyd | 2007-03-01 | 1 | -0/+8 |
| | | |||||
* | | Inline the round functions of RC2. This is about 15% faster on my machine, | lloyd | 2007-03-01 | 1 | -52/+48 |
| | | | | | | | | and actually reduced the total line count. | ||||
* | | merge of '8d39383f5142c3a42ccef1b06333f5aef24e998f' | lloyd | 2007-03-01 | 2 | -15/+8 |
|\ \ | | | | | | | | | | and 'e5ca819cb65b0c124d3ca9538d2e8bc0faa8ecb0' | ||||
| * | | propagate from branch 'net.randombit.botan.stable' (head ↵ | lloyd | 2007-02-28 | 2 | -15/+8 |
| |\| | | | | | | | | | | | | | | | | fd0242cd1f44b6d9d0e526c778860fcded174d62) to branch 'net.randombit.botan' (head 8a5aa356cb3aab0af22b09f51bfa5540fe890bdf) | ||||
| | * | Include <iterator> into x509_ca.cpp for std::back_inserter | lloyd | 2007-02-28 | 1 | -0/+1 |
| | | | |||||
| | * | Remove a call to abort() in global_state() which was triggered if no | lloyd | 2007-02-28 | 1 | -3/+0 |
| | | | | | | | | | | | | | | | global state pointer was set. Presumably I put that there for debugging at some point and let it escape. | ||||
| | * | Minor cleanup of the PKCS8_extract function. | lloyd | 2007-01-28 | 1 | -14/+8 |
| | | | |||||
* | | | Split DSA parameter generation into src/dsa_gen.cpp, and make the functions | lloyd | 2007-03-01 | 2 | -96/+112 |
|/ / | | | | | | | | | | | members of DL_Group (the only place they were called within the source, and outside of some rather esoteric things probably the only place you would ever need it). | ||||
* | | Include the iterator header for std::back_inserter. Noticed when | lloyd | 2007-02-16 | 1 | -0/+1 |
| | | | | | | | | compiling under the Dinkumware libraries. | ||||
* | | Clean up the definition of PKCS8_extract, though really this whole file | lloyd | 2007-02-15 | 1 | -5/+4 |
| | | | | | | | | needs to be rewritten. | ||||
* | | Improve readability slightly in the code handling CRL decoding. | lloyd | 2007-02-15 | 1 | -5/+3 |
| | | |||||
* | | propagate from branch 'net.randombit.botan.stable' (head ↵ | lloyd | 2007-01-20 | 1 | -1/+2 |
|\ \ | |/ |/| | | | | | | | 0f5f960e749e55bc7b457b944ec168184353c300) to branch 'net.randombit.botan' (head 260d11a3da24886b3812b396413e6be768160d75) | ||||
| * | Remove an include of assert.h | lloyd | 2006-12-20 | 1 | -3/+2 |
| | | | | | | | | | | When searching for last used, put the pointer into a Memory_Block first. That avoids a bug in Visual Studio. | ||||
| * | Some minor efficiency gains in the memory allocator. | lloyd | 2006-12-19 | 1 | -22/+16 |
| | | |||||
* | | Bump copyright year to 2007 | lloyd | 2007-01-20 | 207 | -207/+207 |
| | | |||||
* | | Add a new parameter to the Base64_Encoder to specify that a trailing | lloyd | 2007-01-20 | 1 | -3/+3 |
| | | | | | | | | | | | | newline should always be added, even if the output would normally fit entirely on the current line. Monotone needs this for compatability with the Crypto++ implementation of base64. | ||||
* | | Increase the maximum keylength of ARC4 to 256 bytes for Monotone. | lloyd | 2007-01-20 | 1 | -1/+1 |
| | | |||||
* | | Fix two bugs reported by Zack Weinberg in Base64_Decoder | lloyd | 2007-01-08 | 1 | -2/+4 |
| | | |||||
* | | Work around some strange Visual Studio bugs that popped up when compiling | lloyd | 2007-01-08 | 1 | -22/+14 |
| | | | | | | | | mem_pool.cpp with debug enabled. | ||||
* | | The copy constructor of BER_Decoder was not copying other.parent; this | lloyd | 2006-12-27 | 1 | -1/+1 |
|/ | | | | | was causing failures on compilers that do not implement named return value optimization. | ||||
* | Rename the mp_muladd source files to mp_mulop | lloyd | 2006-12-15 | 1 | -0/+0 |
| | |||||
* | Rename certstore.cpp to certstor.cpp, both to match the header and to put | lloyd | 2006-12-15 | 1 | -0/+0 |
| | | | | it into an 8.3 format | ||||
* | Move the UI pulse functions into the global library state. That is (as best | lloyd | 2006-12-14 | 5 | -44/+37 |
| | | | | | as I can tell) the last of the global data, with the exception of the single global_lib_state pointer in libstate.cpp | ||||
* | Use set_option in policy.cpp | lloyd | 2006-12-14 | 1 | -40/+40 |
| | |||||
* | Add a new set_option member function to Config | lloyd | 2006-12-14 | 1 | -0/+8 |
| | |||||
* | Remove needless try/catch block | lloyd | 2006-12-14 | 1 | -10/+2 |
| | |||||
* | Remove a dependency on x509cert.h from x509_ext.cpp by moving the definition | lloyd | 2006-12-12 | 1 | -1/+0 |
| | | | | of NO_CERT_PATH_LIMIT to enums.h | ||||
* | Allow the creation of 48 bit primes | lloyd | 2006-12-08 | 1 | -1/+1 |
| | |||||
* | Catch Encoding_Error in the keypair consistency check when we generate the | lloyd | 2006-09-30 | 1 | -1/+9 |
| | | | | signature; if we catch it, skip the rest of the tests. | ||||
* | Throw Encoding_Error instead of Invalid_Argument if a signature encoding | lloyd | 2006-09-30 | 4 | -8/+8 |
| | | | | | operation fails for some reason (typically parameters that the scheme can't handle). | ||||
* | In the keypair consistency check for encryption/decryption keys, a key | lloyd | 2006-09-30 | 1 | -0/+3 |
| | | | | | that was very small (with max_input_size() == 0) would underflow and cause an attempted allocation of a 4 gigabyte input string. | ||||
* | Move the KDF base class code into kdf.cpp; this prevents the pk_util.cpp | lloyd | 2006-09-26 | 2 | -54/+54 |
| | | | | object code from being linked in when a user just wants to use a PRF | ||||
* | Simplify the initial RNG seeding operation | lloyd | 2006-09-21 | 2 | -19/+7 |
| | |||||
* | Do not allocate a block of memory in Pooling_Allocator::init(); this was | lloyd | 2006-09-20 | 1 | -10/+0 |
| | | | | | | | causing allocators that were never used to allocate (and thus, later deallocate) memory. This was causing a noticable slowdown when the mmap based allocator was in used (based on the strace output, this was mostly due to the calls to msync). | ||||
* | Make the initialization/deinitialization functions static members of | lloyd | 2006-09-20 | 1 | -21/+17 |
| | | | | | | | the LibraryInitializer class, rather than global functions floating around inside the Init namespace. Allow callers to provide an alternative Modules object. |