aboutsummaryrefslogtreecommitdiffstats
path: root/src/constructs
Commit message (Collapse)AuthorAgeFilesLines
* More Doxygen warning fixeslloyd2012-07-091-0/+9
|
* More Doxygen commentslloyd2012-07-061-0/+5
|
* Plain hex_decode now returns a std::vector, use hex_decode_locked tolloyd2012-05-261-1/+1
| | | | get a secure_vector.
* Include <string> in buf_comp.h and filter.h as we used std::string butlloyd2012-05-251-16/+0
| | | | | | | were not including it in the header chain. Caused compilation failures using Clang 3.1 using libc++. Remove the 3-argument version of hash_seq in SRP6, was not being used.
* Replace 0 and NULL pointer constants with nullptr. Also fix an oldlloyd2012-05-181-1/+1
| | | | style cast in secmem.h
* Fairly huge update that replaces the old secmem types with std::vectorlloyd2012-05-1812-56/+56
| | | | | | using a custom allocator. Currently our allocator just does new/delete with a memset before deletion, and the mmap and mlock allocators have been removed.
* Huge pile of post merge fixups, mtn really fucked that mergelloyd2012-04-251-1/+1
|
* propagate from branch 'net.randombit.botan.tls-state-machine' (head ↵lloyd2012-04-254-55/+77
|\ | | | | | | | | | | a4741cd07f50a9e1b29b0dd97c6fb8697c038ade) to branch 'net.randombit.botan.cxx11' (head 116e5ff139c07000be431e07d3472cc8f3919b91)
| * Use just 256 bits of secret exponent (recomended value in RFC 5054).lloyd2012-04-064-21/+22
| | | | | | | | | | | | | | Much faster, especially when using 8192 bit groups as OpenSSL does by default. Use BOTAN_DLL symbol visibility macros.
| * Remove the client SRP6 class, really free standing functions are finelloyd2012-04-052-47/+68
| | | | | | | | | | | | | | | | | | | | | | for this. Add a new function that identifies a named SRP group from the N/g params - this is important as we need to verify the SRP groups, the easiest way to do that is to to force them to be a known/published value. Add the 1536, 3072, 4096, 6144, and 8192 bit groups from RFC 5054
* | propagate from branch 'net.randombit.botan.tls-state-machine' (head ↵lloyd2012-02-203-6/+6
|\ \ | |/ |/| | | | | | | 0ceb9cde62a2b3614901ae85a53546d9fc641326) to branch 'net.randombit.botan.cxx11' (head 777e65950ef3706a82e5df20dcca7fcc999ca533)
| * Fixes for GCC 4.7.0 (r183974)lloyd2012-02-071-5/+5
| |
| * propagate from branch 'net.randombit.botan' (head ↵lloyd2011-12-183-0/+278
| |\ | | | | | | | | | | | | | | | 39f53266912f33dc48e942b1b865ddcd6af66d8d) to branch 'net.randombit.botan.cxx11' (head 0bf26cec09f71e75c547b4ec53365748c6d80d86)
| * \ propagate from branch 'net.randombit.botan' (head ↵lloyd2011-06-132-3/+3
| |\ \ | | | | | | | | | | | | | | | | | | | | 150bd11dd8090559ee1e83394b8283bf93a018de) to branch 'net.randombit.botan.c++0x' (head 7480693bb3f1e8a4e039a3e7ba3d9a7007f9730e)
| | * | Use unique_ptr instead of auto_ptrlloyd2011-03-081-2/+2
| | | | | | | | | | | | | | | | Use std::to_string in bcrypt
| | * | propagate from branch 'net.randombit.botan' (head ↵lloyd2011-03-087-212/+172
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | dd068808e5bf87c982765a8bcc314996053a5bdd) to branch 'net.randombit.botan.c++0x' (head 34696d52a8148d64f7021b3e193fc56f051b9dd2)
| | * \ \ propagate from branch 'net.randombit.botan' (head ↵lloyd2011-02-112-2/+3
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 13a0d36dac3709f3cb88e830ed7f8cab9e7433ab) to branch 'net.randombit.botan.c++0x' (head 2221ad8796466e7e096645de77ba856a9c902d14)
| | | * \ \ propagate from branch 'net.randombit.botan' (head ↵lloyd2010-10-288-53/+53
| | | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2841fb518e20d2fe0a374e4f6b08bdbb14d5d158) to branch 'net.randombit.botan.c++0x' (head 0b9275139d6346bd3aa28d63bf8b8a03851d853d)
| | | * \ \ \ propagate from branch 'net.randombit.botan' (head ↵lloyd2010-10-131-4/+4
| | | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6581b789d58717bc6acee5c6a248e2d44c636e40) to branch 'net.randombit.botan.c++0x' (head 227a989ae94da8f4379ea4b9b0fc0ee8dbdde0c7)
| | | * \ \ \ \ propagate from branch 'net.randombit.botan' (head ↵lloyd2010-10-132-2/+3
| | | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2898d79f992f27a328a3e41d34b46eb1052da0de) to branch 'net.randombit.botan.c++0x' (head 6cba76268fd69a73195760c021b7f881b8a6552c)
| | | | * | | | | Use std::to_stringlloyd2010-09-031-1/+2
| | | | | | | | |
| | | | * | | | | propagate from branch 'net.randombit.botan' (head ↵lloyd2010-09-031-1/+1
| | | | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a29c41b4a949207b1544096c3afab668f8b5179e) to branch 'net.randombit.botan.c++0x' (head a9d0c2f805b3c20a4c648575d7256959db8329fe)
| | | | | * \ \ \ \ propagate from branch 'net.randombit.botan' (head ↵lloyd2010-08-131-1/+1
| | | | | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0a3348f52bf558bc2282e1066c2913a72a1aeda5) to branch 'net.randombit.botan.c++0x' (head 552c20ae8874f12da779fc25ea368e36e71cbfe8)
| | | | | | * \ \ \ \ propagate from branch 'net.randombit.botan' (head ↵lloyd2010-07-091-1/+1
| | | | | | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 161b5c0300b72baa746f101fda1e2b4a7c71818c) to branch 'net.randombit.botan.c++0x' (head 1fc3875bb8daf4ad0e90ba66db72642203cb9984)
| | | | | | | * \ \ \ \ propagate from branch 'net.randombit.botan' (head ↵lloyd2010-06-223-17/+23
| | | | | | | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 647eeb4f4cf8fa4cf487cdc463d48f09fe18658e) to branch 'net.randombit.botan.c++0x' (head 2539675db91883b11895ddc5244721e93c413321)
| | | | | | | * \ \ \ \ \ propagate from branch 'net.randombit.botan' (head ↵lloyd2010-06-176-50/+55
| | | | | | | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 294e2082ce9231d6165276e2f2a4153a0116aca3) to branch 'net.randombit.botan.c++0x' (head 0b695fad10f924601e07b009fcd781191fafcb28)
| | | | | | | * | | | | | | Various updates: unique_ptr, using chrono, merge fixups, etclloyd2010-03-091-1/+1
| | | | | | | | | | | | | |
* | | | | | | | | | | | | | Remove the autheticator generation from the SRP code as it's not usedlloyd2011-12-314-52/+143
| |_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | by TLS (relies on the finished message check). Add a class for reading files created by GnuTLS's srptool.
* | | | | | | | | | | | | Initial run at an SRP-6a implementation. Not entirely sure about thelloyd2011-12-173-0/+278
|/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | interface but it's a plausible start. Will probably have more insights after adding TLS hooks.
* | | | | | | | | | | | It's likely that other FPE methods will be desirable once they arelloyd2011-04-203-9/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | standardized by NIST; the FPE currently included is just a random one that was relatively easy to implement. Move the header to fpe_fe1.h, and rename the function. Update the example and add some documentation for it.
* | | | | | | | | | | | Maintainer mode warning cleanups, mostly for C style casts which Illoyd2011-04-181-4/+4
| |_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added to the flags here.
* | | | | | | | | | | Move password hashing schemes to src/passhashlloyd2011-02-176-407/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set the upper limit on bcrypt hashing to workfactor 18, which takes about 25 seconds to run on my desktop machine.
* | | | | | | | | | | Add support for bcrypt, the Blowfish-based password hashing schemelloyd2011-02-163-0/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | used in OpenBSD. Tested as compatible with a common Java implementation (http://www.mindrot.org/projects/jBCrypt/)
* | | | | | | | | | | Use size_t rather than u32bit for loop variableslloyd2011-02-161-4/+4
| | | | | | | | | | |
* | | | | | | | | | | Forward declare Algorithm_Factorylloyd2011-02-162-1/+3
| | | | | | | | | | |
* | | | | | | | | | | Add the NIST AES key wrap algorithm, as specified in RFC 3394 andlloyd2011-02-153-0/+166
|/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | http://csrc.nist.gov/groups/ST/toolkit/documents/kms/key-wrap.pdf
* | | | | | | | | / Rename to avoid conflicts in the amalgamationlloyd2010-12-281-4/+6
| |_|_|_|_|_|_|_|/ |/| | | | | | | |
* | | | | | | | | Rename the base64 filter and macro names in prep for addinglloyd2010-10-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | standalone/Pipe-free versions of it
* | | | | | | | | s/u32bit/size_t/lloyd2010-10-187-51/+51
| | | | | | | | |
* | | | | | | | | More size_tlloyd2010-10-151-1/+1
| |_|_|_|_|_|_|/ |/| | | | | | |
* | | | | | | | Remove the upto argument to update_belloyd2010-10-131-4/+4
|/ / / / / / /
* | | | | | | s/BLOCK_SIZE/block_size()/lloyd2010-10-131-26/+30
| | | | | | |
* | | | | | | Use output_length() instead of OUTPUT_LENGTH pseudo-propertylloyd2010-10-131-3/+3
| | | | | | |
* | | | | | | Add a simple update_be to BufferedComputation that takes an integerlloyd2010-10-121-12/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and writes the bytes to the stream in big-endian order. Use it in KDF2, MGF1, and FPE.
* | | | | | | Fix dependencieslloyd2010-09-302-2/+2
| | | | | | |
* | | | | | | Update all uses of MemoryRegion::append to use either push_back or operator+=lloyd2010-09-151-9/+9
| | | | | | |
* | | | | | | More changes to avoid vector to pointer implicit conversionslloyd2010-09-141-2/+2
| | | | | | |
* | | | | | | Avoid 3-argument copylloyd2010-09-131-1/+1
| | | | | | |
* | | | | | | Remove more uses of vector to pointer implicit conversionslloyd2010-09-132-9/+11
| | | | | | |
* | | | | | | More vector->pointer conversion removals.lloyd2010-09-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add RandomNumberGenerator::random_vec, which takes an length n and returns a new SecureVector with randomized contents of that size. This nicely covers most of the cases where randomize was being called on a vector, and is a little cleaner in the code as well, instead of vec.resize(length); rng.randomize(&vec[0], vec.size()); we just write vec = rng.random_vec(length);