aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/encrypt.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Cull remaining mostly dubious examples. Also remove readme.txtlloyd2014-01-011-193/+0
|
* Fairly huge update that replaces the old secmem types with std::vectorlloyd2012-05-181-3/+3
| | | | | | 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.
* More pubkey doc updateslloyd2011-04-081-0/+193
|
* Convert most of the documentation to reStructured Text, addinglloyd2011-04-041-193/+0
| | | | | | | | | | | | | | | | | | | a makefile to build it with Sphinx (http://sphinx.pocoo.org/). Previously credits.txt listed public domain code sources; instead directly credit the authors in the relevant files and delete that file. Drop the draft FIPS 140 security policy; I can't imagine FIPS 140 validation will ever happen, and if it does, I don't want anything to do with it. Also drop the internals doc, which was so out of date (and incomplete) as to be worthless. Move the tutorials and InSiTo pdfs into old/ for the time being, until anything relevant from them can be filtered out and converted into RST.
* Remove use of lookupslloyd2010-10-291-3/+5
|
* Use binary I/O where neededlloyd2010-10-151-1/+1
|
* Rename S2K to PBKDF, because that is by far the most common name - S2Klloyd2010-07-091-10/+12
| | | | | | | | | | | | | really is only used by OpenPGP, and largely it was named S2K here because the OpenPGP S2K was implemented years before the ones in PKCS #5. We have a typedef of PBKDF to S2K, and an inlined get_s2k that calls get_pbkdf for source compatability. There doesn't seem to be any reason to have a forward for the renamed s2k.h header - to actually use a PBKDF, you'd have to either include lookup.h and call get_s2k / get_pbkdf, or else include an algorithm-specific header and use it directly. In either case, including s2k.h is neither necessary nor sufficient.
* Modify the S2K interface. Instead of being stateful in terms of the saltlloyd2010-02-011-6/+15
| | | | | | | | | | | and iteration count, force it to be passed to each call to derive_key. So remove current_salt, set_iterations, new_random_salt, and change_salt functions from S2K interface. Update examples and test application to match. While I was in there, change the passhash example to use 64 bit salts and 128 bit PBKDF2 outputs.
* Add copyright and license notes to pretty much every file that didn't have them,lloyd2009-12-311-6/+7
| | | | | | | | including the examples and self-test code. Most of these files had not copyright/license information at all; since a major point of the examples is to allow users to copy and paste code that already does something they want, an ambigious license is not good.
* Add LibraryInitializers to the examples, instead of relying on lazy init.lloyd2009-03-171-0/+2
| | | | Patch from David X Callaway.
* Move rng.{cpp,h} from core to rng/ topdirlloyd2008-10-261-3/+2
| | | | | | | | | | | | | | Add a new class AutoSeeded_RNG that is a RandomNumberGenerator that wraps up the logic formerly in RandomNumberGenerator::make_rng. make_rng in fact now just returns a new AutoSeeded_RNG object. AutoSeeded_RNG is a bit more convenient because - No need to use auto_ptr - No need to dereference (same syntax everywhere - it's an underestimated advantage imo) Also move the code from timer/timer_base to timer/
* Modularize the Adler32 checksum in checksums/adler32lloyd2008-09-281-2/+2
| | | | | | | | | Add a new option --disable-modules which allows for disabling any set of modules that normally would be autoloaded. Rename the Botan feature test macros from BOTAN_EXT_BLAH to BOTAN_HAS_BLAH, which will be much more sensible especially when everything is done in this fashion (eg, BOTAN_HAS_BLOWFISH or BOTAN_HAS_RSA, etc)
* If the Zlib module is not compiled in, don't #error and abort the wholelloyd2008-09-241-3/+4
| | | | compile, just skip adding a Zlib filter into the Pipe.
* Fix the DSA examples. Reindent.lloyd2008-06-281-1/+2
|
* Update more of the exampleslloyd2008-06-271-1/+3
|
* Add missing headers in the example problems, noticed while compiling underlloyd2008-06-111-0/+1
| | | | GCC 4.3. Missing <memory> for auto_ptr and <cstdlib> for atoi
* If the LibraryInitializer is created with just default arguments, don'tlloyd2007-10-071-39/+37
| | | | | | | bother creating it, just let it be initialized lazily when needed. Reindents in encypt.cpp and hash_fd.cpp (indenting the brace after a try statement).
* Initial checkin1.5.6lloyd2006-05-181-0/+175