Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add assert equal | lloyd | 2010-11-29 | 1 | -8/+18 |
| | |||||
* | Doxygen updates. | lloyd | 2010-11-02 | 1 | -12/+10 |
| | | | | | Remove version of search_map that returns two distinguishing results; only used in one place, and that can be replaced by a call to count() | ||||
* | Doxygen | lloyd | 2010-11-02 | 2 | -3/+15 |
| | |||||
* | Add new top-level algorithm which provides basic functionality: name | lloyd | 2010-11-01 | 2 | -154/+0 |
| | | | | | | | | query, clearing, and cloning. Applies to ciphers, hashes, MACs, and PBKDFs. May extend to KDFs later as well. A single combined hierarchy in particular will make the algo_factory much simpler. | ||||
* | Remove BufferedComputation::OUTPUT_LENGTH | lloyd | 2010-10-29 | 1 | -13/+2 |
| | |||||
* | Prefix vs postfix | lloyd | 2010-10-15 | 2 | -4/+4 |
| | |||||
* | More size_t | lloyd | 2010-10-15 | 1 | -24/+24 |
| | |||||
* | More size_t | lloyd | 2010-10-13 | 2 | -7/+7 |
| | |||||
* | Remove the upto argument to update_be | lloyd | 2010-10-13 | 1 | -5/+8 |
| | |||||
* | Use output_length() instead of OUTPUT_LENGTH pseudo-property | lloyd | 2010-10-13 | 1 | -4/+4 |
| | |||||
* | Add accessors for block size and output length | lloyd | 2010-10-13 | 1 | -0/+5 |
| | |||||
* | s/u32bit/size_t/ in utils | lloyd | 2010-10-13 | 11 | -55/+55 |
| | |||||
* | Use size_t for BufferedComputation::add_data | lloyd | 2010-10-12 | 2 | -11/+12 |
| | |||||
* | Use size_t in filters | lloyd | 2010-10-12 | 1 | -1/+1 |
| | | | | | This breaks API for anyone creating their own Filter types, but it had to happen eventually. | ||||
* | Add a simple update_be to BufferedComputation that takes an integer | lloyd | 2010-10-12 | 1 | -0/+10 |
| | | | | | and writes the bytes to the stream in big-endian order. Use it in KDF2, MGF1, and FPE. | ||||
* | Use size_t in all of math, remove to_u32bit | lloyd | 2010-10-12 | 1 | -0/+1 |
| | |||||
* | Drop debug.h, it didn't turn out to be that useful for most things, | lloyd | 2010-10-07 | 2 | -38/+0 |
| | | | | especially now that the standalone hex encoder is around | ||||
* | Doxygen | lloyd | 2010-10-01 | 1 | -14/+61 |
| | |||||
* | There is a pretty common pattern in the code for testing for internal | lloyd | 2010-09-26 | 3 | -0/+86 |
| | | | | | | | | | | errors of the form if(some_expr_indicating_failure) throw Internal_Error("Some mildly informative message"); Make this simpiler with the addition of a BOTAN_ASSERT macro which will throw an exception upon failure. | ||||
* | First set of changes for avoiding use implicit vector->pointer conversions | lloyd | 2010-09-13 | 1 | -3/+6 |
| | |||||
* | Dynamic loading confirmed to work on Windows (tested Windows 7 x64) | lloyd | 2010-09-08 | 1 | -0/+1 |
| | |||||
* | Under certain compilation modules, HMODULE isn't a void* but rather a | lloyd | 2010-09-08 | 1 | -2/+2 |
| | | | | | | pointer to a nonce struct; presumably for slightly better typechecking. In case we're compiling under such a mode, case the first argument to FreeLibrary and GetProcAddress to a HMODULE. | ||||
* | Cast the first argument to msync, munmap, mlock, and munlock to char* | lloyd | 2010-09-07 | 1 | -2/+2 |
| | | | | | to fix compilation on Solaris. Everybody else, including POSIX.1, uses void* here, but as usual Solaris likes to be special. | ||||
* | Work around Sun Studio multimap insert bug | lloyd | 2010-09-03 | 1 | -0/+5 |
| | |||||
* | Uglify Data_Store::search_with a little to go through multimap_insert | lloyd | 2010-09-03 | 1 | -1/+7 |
| | | | | to avoid a Sun Studio bug. | ||||
* | Remove filter/pipe dependency here | lloyd | 2010-09-03 | 2 | -14/+6 |
| | |||||
* | Add support for Windows-style dynamic loading with LoadLibrary. Not | lloyd | 2010-08-25 | 2 | -8/+31 |
| | | | | yet tested. | ||||
* | Workaround problem with GCC 3 - it doesn't like you casting pointers | lloyd | 2010-08-10 | 1 | -0/+4 |
| | | | | | | to pointers-to-functions (which, admittedly, is undefined in ISO C++, but doing this is required to use dlopen). Using the dumb hammer of a C-style cast works, though. | ||||
* | Also allow clang with 32-bit assembly code, everything seems to work | lloyd | 2010-08-08 | 2 | -0/+19 |
| | | | | fine with latest SVN. | ||||
* | Clang understands at least some GCC inline asm syntax as well as what | lloyd | 2010-08-08 | 1 | -0/+1 |
| | | | | an .S file is, so allow it for x86-64. Tested/works with Clang SVN. | ||||
* | If we can't access cpuid, but we know that we are compiling for | lloyd | 2010-08-08 | 1 | -0/+9 |
| | | | | | | x86-64, then enable SSE2 anyway because we know any x86-64 processor does have SSE2, and the OS has to support it because it's part of the standard ABIs. | ||||
* | If dynamic loading fails, include result of dlerror() in the exception msg | lloyd | 2010-07-30 | 1 | -1/+8 |
| | |||||
* | Restrict dyn_load to platforms where it might theoretically work: | lloyd | 2010-07-28 | 1 | -0/+9 |
| | | | | | | | | Linux, Solaris, and the BSDs. Solaris and BSD are untested, but it seems like they should work. Using libdl on Solaris is seemingly only required in Solaris 9 and earlier, but 10 has a stub library so it should work there as well. | ||||
* | Add a new utility class Dynamically_Loaded_Library which wraps around | lloyd | 2010-07-27 | 3 | -0/+122 |
| | | | | | | | | | | the system dynamic linker (if any). Currently it only supports dlopen, and is only enabled on Linux. It will almost certainly work on BSDs and Solaris as well, though, and should be easy to extend to support Win32-style dynamic loading. Also add a new engine, Dynamically_Loaded_Engine, which loads up a new Engine object from a shared library/DLL. | ||||
* | Oops, bad GCC version check here | lloyd | 2010-07-27 | 1 | -1/+1 |
| | |||||
* | Add support in CPUID for detecting PCMULUDQ and MOVBE instructions. | lloyd | 2010-07-27 | 1 | -4/+18 |
| | | | | Rename CPUID::has_aes_intel to has_aes_ni. | ||||
* | Add support for GCC's byteswap builtins. They were added in 4.3 and | lloyd | 2010-07-27 | 1 | -4/+29 |
| | | | | | | work for 32 and 64 bit integers. Using these instead of inline asm may offer better scheduling on x86, and additionally offers native byteswapping on other platforms (PPC, ARM, etc). | ||||
* | Modify CPUID so all the check functions are purely inline. Add a new | lloyd | 2010-07-26 | 2 | -47/+25 |
| | | | | | initialize() call which must be called prior to use of any other functions. | ||||
* | Consolidate the two engines that provided assembler implementations | lloyd | 2010-07-13 | 2 | -2/+2 |
| | | | | | | (amd64_eng and ia32_eng) into a new asm_engine. This same engine could also be used in the event that asm code for other CPUs was added later on. | ||||
* | Make round_up and round_down templates instead of fixed to use u32bits | lloyd | 2010-06-29 | 1 | -6/+14 |
| | |||||
* | Simplify feature checks | lloyd | 2010-06-28 | 1 | -7/+12 |
| | |||||
* | Add detection support for upcoming AVX | lloyd | 2010-06-25 | 1 | -1/+8 |
| | |||||
* | Doxygen | lloyd | 2010-06-22 | 1 | -6/+35 |
| | |||||
* | Doxygen | lloyd | 2010-06-21 | 1 | -6/+217 |
| | |||||
* | Doxygen | lloyd | 2010-06-21 | 4 | -13/+41 |
| | |||||
* | Doxygen | lloyd | 2010-06-21 | 1 | -9/+9 |
| | |||||
* | Doxygen | lloyd | 2010-06-21 | 1 | -0/+20 |
| | |||||
* | Add a simple comment for the Botan namespace decl in types.h. This | lloyd | 2010-06-21 | 1 | -0/+3 |
| | | | | | triggers Doxygen generating warnings for global functions declared in the namespace that aren't documented. | ||||
* | merge of '3632315d498b1223cca850051518f7a3273f5449' | lloyd | 2010-06-16 | 3 | -9/+33 |
|\ | | | | | | | and '5c9cdb3b727e7336f0a18f72e6ca2eb7460d31ec' | ||||
| * | Replace "@return a blah" and "@return the blah" with just "@return blah" | lloyd | 2010-06-16 | 2 | -6/+6 |
| | |