Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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. | ||||
* | The public add_engine API now always places the new engine at the front | lloyd | 2006-09-20 | 1 | -9/+8 |
| | | | | | of the list. The only time when the other behavior was desired was inside the load() function, which now simply appends to the engines vector itself. | ||||
* | Make the implementation of the round function a bit easier to read. | lloyd | 2006-09-20 | 1 | -6/+12 |
| | |||||
* | When searching the block list, first try the last block we had a good | lloyd | 2006-09-11 | 1 | -4/+4 |
| | | | | | | | | allocation from, rather than the block after that one. This helps the pathalogical case where there are many full blocks and some free blocks at the very end of the list (as then it would loop through each one, trying and failing to allocate from an already full block until it hit the end of the list again). | ||||
* | Correctly deal with allocators added post-initialization. In particular, | lloyd | 2006-09-11 | 4 | -48/+40 |
| | | | | | | | | | | handle the case where an allocator is added that has the same name as one already registered. Flush the cached allocator pointer when the default is changed. Mark comparison operations in Pooling_Allocator::Memory_Block as inline; this seems to help the STL sort and binary search algorithms tremendously. | ||||
* | Remove a useless wrapper function. | lloyd | 2006-09-10 | 1 | -17/+6 |
| | |||||
* | Completely rewrite how the default X509_Store searches are performed, | lloyd | 2006-09-10 | 1 | -86/+41 |
| | | | | | | exposing the actual search objects to the user rather than wrapping them in functions. Primarily this is to avoid the Visual Studio bug alluded to in the last commit. | ||||
* | Hack around some Visual Studio bugs that I can't seem to find good solutions | lloyd | 2006-09-10 | 4 | -16/+35 |
| | | | | for. | ||||
* | Add parenthesis to make the order of evaluation in an expression more obvious | lloyd | 2006-09-09 | 1 | -1/+1 |
| | |||||
* | Add a couple of static_casts to make it clear where a type conversion is | lloyd | 2006-09-08 | 4 | -13/+15 |
| | | | | | | | | | being performed. Undefined the prototype creating macro in x509stat.cpp after use. Avoid a possible type conversion in bigint_divop by storing high's top bit in a word instead of a bool. | ||||
* | Return the correct type from Basic_Constraints::get_path_limit (was coercing | lloyd | 2006-09-08 | 1 | -1/+1 |
| | | | | the path limit integer to a boolean) | ||||
* | Rename instances of X509_PublicKey and PKCS8_PrivateKey | lloyd | 2006-09-06 | 9 | -34/+34 |
| | |||||
* | Split PK_Key into Public_Key and Private_Key; these new classes merge in | lloyd | 2006-09-06 | 10 | -81/+53 |
| | | | | the interfaces previously included in X509_PublicKey and PKCS8_PrivateKey. | ||||
* | Implement codec objects for private keys as well. | lloyd | 2006-09-06 | 5 | -125/+155 |
| | |||||
* | Remove some old commented out test code. | lloyd | 2006-09-06 | 1 | -54/+0 |
| | |||||
* | First step in a major rewrite of the high level public key code. The | lloyd | 2006-09-06 | 3 | -65/+205 |
| | | | | | | X509_PublicKey object now offers interfaces that return encoder and decoder objects. Eventually these changes will make it much easier to support alternate key formats like OpenPGP. | ||||
* | Merge a formerly duplicate function (one in an anonymous namespace in | lloyd | 2006-09-06 | 2 | -28/+19 |
| | | | | x509self.cpp, the other a block of code in X509_CA's constructor). | ||||
* | Move the declaration of AlgorithmIdentifier into its own header file. | lloyd | 2006-09-06 | 1 | -1/+1 |
| | |||||
* | PK_Verifier no longer keeps a reference to the key being used; it only | lloyd | 2006-09-06 | 1 | -7/+15 |
| | | | | | ever needed it to pull a few pieces of information from the key, which it now gets by calling pure virtual functions implemented by its children. | ||||
* | Change Engine to not rely on the existence of an Algorithm base class for | lloyd | 2006-09-06 | 1 | -123/+83 |
| | | | | the various types it wants to cache. | ||||
* | Add a new version of the StreamCipher_Filter constructor that takes a key | lloyd | 2006-08-23 | 1 | -0/+11 |
| | | | | as well as the cipher name | ||||
* | Put the definitions of Pipe::LAST_MESSAGE and Pipe::DEFAULT_MESSAGE into | lloyd | 2006-08-23 | 1 | -0/+6 |
| | | | | | pipe.cpp; apparently GCC was eliding them completely from the shared library otherwise, meaning Boost.Python couldn't reference them. | ||||
* | Fix a bug that caused subject alternative name information to be saved | lloyd | 2006-08-23 | 1 | -2/+5 |
| | | | | as issuer names. | ||||
* | X509_Certificate::ex_constraints and ::policies now return (if possible) | lloyd | 2006-08-22 | 1 | -2/+22 |
| | | | | | | string representations of the OIDs; anything for which a human-readable version does not exist in the OID table is returned in the normal dotted decimal representation. | ||||
* | Have OIDS::lookup do the right thing when given an OID that isn't | lloyd | 2006-08-22 | 1 | -2/+8 |
| | | | | | registered in the name database, or asked to lookup an OID with a bare OID string representation. | ||||
* | Add "OrgUnit" as an additional synonym for X520.OrganizationalUnit, | lloyd | 2006-08-22 | 1 | -1/+2 |
| | | | | though it's clear that this whole naming system is very broken. | ||||
* | Let SHA_160::W be resized dynamically; potentially the asm version could | lloyd | 2006-08-21 | 1 | -0/+8 |
| | | | | use a little extra workspace, this makes that simpler to do. | ||||
* | Remove an oddly placed newline | lloyd | 2006-08-21 | 1 | -1/+0 |
| | |||||
* | Move bigint_simple_mul into mp_mul.cpp, since that is the only place it | lloyd | 2006-08-19 | 3 | -15/+26 |
| | | | | | | was used. Make a variant of bigint_simple_mul, bigint_simple_sqr, for mp_sqr.cpp | ||||
* | Move Montgomery reduction algorithm into mp_asm.cpp | lloyd | 2006-08-19 | 5 | -65/+66 |
| | | | | | | | | | | Move the inner-most loop of Montgomery into bigint_mul_add_words, in mp_muladd.cpp Use bigint_mul_add_words for the inner loop of bigint_simple_multiply Move the compare/subtract at the end of the Montomgery algorithm into bigint_monty_redc | ||||
* | Don't test Skipjack at startup - it's really not that important, and | lloyd | 2006-08-19 | 1 | -8/+0 |
| | | | | | running the test means the algorithm prototype is loaded into memory when it will probably never be used later. | ||||
* | Remove trailing whitespace | lloyd | 2006-08-19 | 2 | -2/+2 |
| | |||||
* | Simplify the implementation of bigint_divop | lloyd | 2006-08-18 | 1 | -6/+8 |
| |