Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove most of the direct references to the global_rng() call | lloyd | 2008-06-28 | 7 | -114/+137 |
| | |||||
* | Change make_rng to be a static member of RandomNumberGenerator | lloyd | 2008-06-28 | 3 | -7/+4 |
| | |||||
* | Include rng.h in botan.h | lloyd | 2008-06-27 | 1 | -0/+1 |
| | |||||
* | Update more of the examples | lloyd | 2008-06-27 | 3 | -5/+11 |
| | |||||
* | Update pkcs10, passhash examples | lloyd | 2008-06-27 | 2 | -9/+16 |
| | |||||
* | Update some of the examples for the recent API changes | lloyd | 2008-06-27 | 7 | -28/+42 |
| | |||||
* | New structure for entropy sources + RNGs. The entropy sources are owned by | lloyd | 2008-06-27 | 11 | -198/+202 |
| | | | | | | | Randpool, it will query them as needed (or if asked to do so). New function make_rng() that creates an RNG (X9.31 backed by a Randpool) and seeds it. Remove the entropy source related code from the Modules/Builtin_Modules classes. | ||||
* | Avoid warning | lloyd | 2008-06-27 | 1 | -1/+1 |
| | |||||
* | Remove the global PRNG object as well as the global list of entropy sources. | lloyd | 2008-06-27 | 4 | -134/+1 |
| | |||||
* | Remove PRNG_Unseeded throw() specifies from the RNG randomize() functions. | lloyd | 2008-06-27 | 4 | -4/+4 |
| | | | | | | They were probably not a good idea. If nothing else, these functions might throw bad_alloc, and possibly other errors. Something broad like std::exception might be applicable, but that seems pointlessly broad. | ||||
* | Remove uses of global PRNG from self-test and benchmark code. Assumes | lloyd | 2008-06-27 | 9 | -39/+59 |
| | | | | access to /dev/random (will be cleaned up shortly) | ||||
* | OctetString now requires a RandomNumberGenerator& to create a random | lloyd | 2008-06-27 | 2 | -4/+5 |
| | | | | key or IV; it does not reference the global RNG. | ||||
* | Reorganize the EMSA classes, and remove the last references to prng_reference | lloyd | 2008-06-27 | 7 | -60/+138 |
| | | | | in the library ccode. | ||||
* | Previously if DL_Group was given a q value of zero, it would check to | lloyd | 2008-06-27 | 1 | -4/+0 |
| | | | | | | | | | | | | see if (p-1)/2 was prime, and if so set q to that. This is to deal with certain bogus DH formats (PKCS #3, specifically; the 'modern' ANSI formats always provide the q subgroup value). However this required access to the RNG. Rather than push RNG usage all the way down into that part of DL group, simply remove the feature. Since PKCS #3 format is only really used for DH keys, it will not much affect anything functionally (that I can see). | ||||
* | Remove unneeded include of libstate.h | lloyd | 2008-06-27 | 1 | -1/+0 |
| | |||||
* | Remove load checking, as it requires an RNG (at least at the moment). | lloyd | 2008-06-27 | 22 | -101/+106 |
| | | | | | | | | | Probably some variation of it will be added back in later, at least to do basic checks like that primes are really odd (and we can do basic primality checks, etc, even with an RNG). Alternative: call check_key() manually on public keys you load with an RNG object. | ||||
* | Split IF_Core constructor into two, one for public keys and one for private. | lloyd | 2008-06-27 | 3 | -7/+17 |
| | | | | Public version doesn't need an RNG argument. | ||||
* | The change in rev f6d0cb6f9569d228ed6a11d021c3f57f55220bde was actually | lloyd | 2008-06-26 | 1 | -4/+4 |
| | | | | | | | | | | | completely wrong, and it is rather disturbing I made that mistake. The poll() function will gather up to the number of bytes passed as its argument; it will do this by opening up files and reading up to 1024 bytes from each one. So we might open between 256 and 256*1024 files, depending on the sizes of them (ignoring empty files, which count for zero bytes). (Idea: also include the name of the file in the output? Is that useful?) Move the read_buf out of the loop to minimize allocator thrashing. | ||||
* | merge of '763336fcbf1dad6a9acfdc1e899b59916ab55a20' | lloyd | 2008-06-26 | 1 | -2/+2 |
|\ | | | | | | | and 'f6d0cb6f9569d228ed6a11d021c3f57f55220bde' | ||||
| * | ew_ftw was reading up to 32 Mb for a fast poll and 256 Mb for a slow poll. | lloyd | 2008-06-22 | 1 | -2/+2 |
| | | | | | | | | That seems excessive. Reduce to 32 Kb and 256 Kb (resp). | ||||
* | | Remove SHA1PRNG for the moment, until | lloyd | 2008-06-23 | 5 | -218/+5 |
|/ | | | | | | | | | a) I am sure we really want to include this (proprietary, unanalyzed?) PRNG in Botan b) I have a chance to add test cases and clean up the code. Also note a few more changes in the changelog, and set a provisial release date for sometime in July. | ||||
* | Remove the hooks for the AEP module, since it was removed due to lack of | lloyd | 2008-06-22 | 1 | -16/+0 |
| | | | | | | testability (have a card still, but the drivers are for 2.4 kernel and seemingly not 64-bit or thread safe, so it's pretty much a paperweight right now). | ||||
* | Use croak instead of die | lloyd | 2008-06-22 | 1 | -1/+1 |
| | |||||
* | An unknown module name pass to --module died with a undef hash reference, | lloyd | 2008-06-22 | 1 | -0/+2 |
| | | | | which is pretty unfriendly. Die with an error instead. | ||||
* | Similiar combining transform for the ElGamal, DSA, and NR private key | lloyd | 2008-06-20 | 9 | -73/+58 |
| | | | | constructors. | ||||
* | Consolidate the two DH_PrivateKey constructors into a single one taking | lloyd | 2008-06-20 | 4 | -36/+35 |
| | | | | | a RNG reference, a group, and an (optional) private key. The public key is now always rederived from the private. | ||||
* | Use RNG& argument for PKCS8::encrypt_key and PKCS8::PEM_encode | lloyd | 2008-06-20 | 3 | -16/+26 |
| | |||||
* | Convert pkcs8_decoder() and x509_decoder() to take a RandomNumberGenerator& | lloyd | 2008-06-20 | 12 | -46/+74 |
| | | | | | | | | reference, along with PKCS8::load_key get_pbe no longer calls new_params() on the newly instantiated instance, which is not backwards compatible (you have to either call new_params yourself, or explicitly set the iteration count, salt, etc) | ||||
* | Pass RNG& to IF (RSA/RW) load hooks | lloyd | 2008-06-20 | 4 | -26/+30 |
| | |||||
* | Pass a reference to the global PRNG as an argument to the DL_Scheme_Decoder | lloyd | 2008-06-20 | 1 | -6/+12 |
| | | | | constructor, instead of referencing it directly. | ||||
* | Pass a RandomNumberGenerator& to the PK_Core constructors and the various | lloyd | 2008-06-20 | 12 | -56/+64 |
| | | | | public key object loading hooks. | ||||
* | Fix remaining -Wmissing-declarations warnings in self-test/benchmark code | lloyd | 2008-06-20 | 4 | -135/+129 |
| | |||||
* | Remove exception specifier from RandomNumberGenerator::randomize | lloyd | 2008-06-18 | 1 | -1/+1 |
| | |||||
* | Move RNG code from base.cpp to new rng.cpp | lloyd | 2008-06-18 | 2 | -49/+57 |
| | |||||
* | Fix more -Wmissing-declaration warnings | lloyd | 2008-06-18 | 4 | -10/+22 |
| | |||||
* | The FTW_EntropySource constructor no longer takes a default argument: | lloyd | 2008-06-17 | 1 | -1/+1 |
| | | | | specify it when we instantiate one in Builtin_Modules | ||||
* | New, much cleaner (and thread safe) implementation of es_ftW | lloyd | 2008-06-17 | 2 | -59/+97 |
| | |||||
* | merge of 'd4c75c032cc3b6f2c3934b899444c8c6939f90d6' | lloyd | 2008-06-17 | 1 | -1/+0 |
|\ | | | | | | | and 'f7dcf0856b7a4acdff56fd8ac0006678d208283e' | ||||
| * | Remove unneeded inclusion of <fstream> | lloyd | 2008-06-16 | 1 | -1/+0 |
| | | |||||
* | | Add ability for one module to require another. Does not take into account | lloyd | 2008-06-17 | 1 | -0/+11 |
|/ | | | | | | OS/arch/compiler restrictions on the required module, only on the requiree. Since normally the required module will use a subset of the functionality, that is probably OK, but something to be aware of. | ||||
* | Delete the public key filter classes. Advertised on the devel list previously: | lloyd | 2008-06-16 | 3 | -197/+0 |
| | | | | http://lists.randombit.net/pipermail/botan-devel/2008-June/000559.html | ||||
* | Add missing BOTAN_DLL decl to SHA1PRNG class declaration | lloyd | 2008-06-16 | 1 | -1/+1 |
| | |||||
* | Fix -Wmissing-declarations warning | lloyd | 2008-06-16 | 1 | -40/+43 |
| | |||||
* | Fix some -Wmissing-declarations warnings | lloyd | 2008-06-12 | 8 | -9/+43 |
| | |||||
* | Some functions in engine.cpp required BOTAN_DLL macros to compile correctly. | lloyd | 2008-06-11 | 1 | -14/+14 |
| | | | | | | | | | I didn't understand why but had let it slip, but now that it's clear that their declarations were not in scope at the point of their definitions (seen via GCC's -Wmissing-declarations) it is quite obvious: the compiler had no idea the functions should be compiled with an alternative ELF scoping. Since the declarations are now included, remove the BOTAN_DLL macros from the .cpp file. | ||||
* | Add includes to ensure decls for global functions are visible at call points | lloyd | 2008-06-11 | 3 | -0/+4 |
| | |||||
* | Move AlgorithmIdentifier comparison ops to alg_id.h | lloyd | 2008-06-11 | 2 | -5/+8 |
| | |||||
* | Avoid -Wshadow warnings | lloyd | 2008-06-11 | 1 | -5/+5 |
| | |||||
* | Add missing headers in the example problems, noticed while compiling under | lloyd | 2008-06-11 | 8 | -0/+9 |
| | | | | GCC 4.3. Missing <memory> for auto_ptr and <cstdlib> for atoi | ||||
* | X509_CA::{new_crl,update_crl} take a RandomNumberGenerator reference | lloyd | 2008-06-11 | 3 | -12/+15 |
| |