Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Modify X509_CA::make_cert and X509_CA::sign_request to take a RNG reference | lloyd | 2008-06-11 | 4 | -11/+16 |
| | | | | argument in favor of referencing the global PRNG argument | ||||
* | Move the declaration of the RandomNumberGenerator base class from base.h | lloyd | 2008-06-10 | 18 | -39/+66 |
| | | | | to rng.h (eventually base.h will be split up entirely and go away) | ||||
* | Change PK_Signer::signature to take a RandomNumberGenerator reference | lloyd | 2008-06-10 | 11 | -41/+38 |
| | | | | instead of always using the global PRNG. | ||||
* | PK_Encryptor::encrypt now takes a RandomNumberGenerator reference, instead | lloyd | 2008-06-10 | 8 | -30/+35 |
| | | | | of using the global RNG object. | ||||
* | Pass a RNG reference to the EMSA encoder functions | lloyd | 2008-06-10 | 9 | -40/+84 |
| | |||||
* | Pass RandomNumberGenerator references to public key operations that need | lloyd | 2008-06-10 | 13 | -26/+41 |
| | | | | | | | them (encrypt and sign), with the intent of slowly bubbling up the access points to the API level, at which point the application handles managing the RNG. This will allow removing the compiled-in global PRNG, and make testing much simpler. | ||||
* | GmbH, not GmBH | lloyd | 2008-06-10 | 1 | -1/+1 |
| | |||||
* | merge of '1813007a29ee71c4d313e58022f38fd8144d7637' | lloyd | 2008-06-10 | 1 | -0/+2 |
|\ | | | | | | | and '3e5ec6aac7a64cbc6a7adcbb33b6d9dbb1a4a54e' | ||||
| * | Document RNG test suite, SHA1PRNG contribution | lloyd | 2008-06-09 | 1 | -0/+2 |
| | | |||||
* | | Add braces to avoid confusion (and a GCC 4.3 warning) in nested if/else | lloyd | 2008-06-10 | 1 | -0/+2 |
| | | |||||
* | | Remove Randpool header from X9.31 PRNG code: the RNGs are now decoupled | lloyd | 2008-06-10 | 1 | -1/+0 |
|/ | |||||
* | Check in the first import from InSiTo, SHA1PRNG, which implements the | lloyd | 2008-06-07 | 4 | -3/+177 |
| | | | | | Java SecureRandom PRNG algorithm. (I accidentally checked in the header in the previous revision). | ||||
* | Make the contents of Botan_types namespace be just using declarations, | lloyd | 2008-06-07 | 4 | -4/+44 |
| | | | | instead of introducing new typedefs. | ||||
* | Add a full set of tests for the ANSI X9.31 PRNG, using data taken | lloyd | 2008-06-07 | 8 | -53/+2158 |
| | | | | | | | | from the NIST CAVS dataset, taken on June 7 2008 from http://csrc.nist.gov/groups/STM/cavp/standards.html AES-128, AES-192, AES-256, and 2 and 3-key TripleDES variants are all tested. | ||||
* | We must have ANSI_X931_RNG::clear() call destroy() on V, which sets the | lloyd | 2008-06-07 | 1 | -1/+1 |
| | | | | | | length to zero. That is because we encoded our seededness state as being if (and only if) V has non-zero length. After clearing, we have reset all state. | ||||
* | merge of '36a07a95dbdfc44382114f6933d7bbe49e584cef' | lloyd | 2008-06-07 | 1 | -15/+11 |
|\ | | | | | | | and 'ce120a1a57e265d0ce93bd2567d9f1f9ec8e25d9' | ||||
| * | Change how the ANSI X9.31 generator tells that it is seeded. Previously, | lloyd | 2008-06-07 | 1 | -15/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | it was seeded if and only if the underlying PRNG was seeded. However if the PRNG always returned as being seeded, we would never generate a V value, etc (leaving them at the default zero). This would not occur with any of Botan's built in PRNGs since their implementations require that add_randomness be called at least once before is_seeded will return true. However this is not an invariant of the general RandomNumberGenerator interface. Now, the X9.31 PRNG is only seeded after it has a) detected that the PRNG is seeded, and b) generated a new random key and V vector. | ||||
* | | Mention Randpool change in log.txt | lloyd | 2008-06-03 | 1 | -1/+2 |
|/ | |||||
* | Reindent | lloyd | 2008-05-25 | 6 | -21/+20 |
| | |||||
* | Wrap at 80 columns | lloyd | 2008-05-25 | 1 | -1/+2 |
| | |||||
* | Update EME_PKCS1v15::pad to use next_byte API | lloyd | 2008-05-25 | 1 | -1/+1 |
| | |||||
* | Add RandomNumberGenerator::next_byte, which just returns a single byte | lloyd | 2008-05-25 | 2 | -0/+12 |
| | | | | value from the RNG. (Would an adapter class be more appropriate?) | ||||
* | Make the two parameters of Randpool (which underlying block cipher and MAC | lloyd | 2008-05-25 | 5 | -14/+22 |
| | | | | to use) explicit arguments to the constructor instead of being hardcoded. | ||||
* | Use RNG argument in EME_PKCS1v15::pad instead of global object | lloyd | 2008-05-25 | 1 | -3/+2 |
| | |||||
* | Check in initial changelog for 1.7.7. Increase version number in configure.pl | lloyd | 2008-05-24 | 3 | -2/+7 |
| | | | | and in readme.txt | ||||
* | Pass an RNG reference to EME::pad | lloyd | 2008-05-24 | 6 | -16/+32 |
| | | | | PK_Encryptor_MR_with_EME::enc references the global PRNG currently | ||||
* | Don't use the global PRNG in implementations of PBE::new_params | lloyd | 2008-05-24 | 5 | -11/+16 |
| | |||||
* | Update passhash example with new S2K::new_random_salt signature | lloyd | 2008-05-24 | 1 | -1/+2 |
| | |||||
* | Remove random_integer() and replace it with a BigInt constructor taking a | lloyd | 2008-05-24 | 11 | -29/+28 |
| | | | | RandomNumberGenerator reference. Update all callers. | ||||
* | Pass an RNG reference to IF_Core | lloyd | 2008-05-24 | 3 | -6/+9 |
| | |||||
* | Keypair::check_key no longer references global PRNG | lloyd | 2008-05-24 | 7 | -18/+30 |
| | |||||
* | Remove version of OctetString::change that used global PRNG | lloyd | 2008-05-24 | 2 | -3/+2 |
| | |||||
* | Avoid global RNG in S2K::new_random_salt (RNG reference passed as argument ↵ | lloyd | 2008-05-24 | 2 | -4/+4 |
| | | | | instead) | ||||
* | Pass a RNG reference to load_check and gen_check functions | lloyd | 2008-05-24 | 7 | -28/+26 |
| | |||||
* | Avoid using the global RNG in check_key, instead pass a reference. | lloyd | 2008-05-24 | 26 | -59/+73 |
| | | | | Update the examples | ||||
* | Avoid using global rng in DL_Group::generate_dsa_primes | lloyd | 2008-05-24 | 3 | -10/+14 |
| | |||||
* | Previously random_integer and friends used the global PRNG object to get | lloyd | 2008-05-24 | 30 | -108/+166 |
| | | | | | | | | | | | | | random bits. Now they take a reference to a RandomNumberGenerator object. This was applied several times out, so now the constructors to private key objects also take a RandomNumberGenerator& argument. This is also true for a number of randomized algorithms (Miller-Rabin, for instance). You can get a reference to the global PRNG with global_state().prng_reference() This is a provisional thing: and warning: it is not thread safe! If this is a problem instead keep per-thread PRNGs and pass them were needed. | ||||
* | Policy change: No RSA key generation smaller than 1024 bits. Had been 128 | lloyd | 2008-05-24 | 1 | -1/+1 |
| | |||||
* | Remove both default arguments to the constructor of ANSI_X931_RNG. | lloyd | 2008-05-24 | 3 | -8/+8 |
| | | | | | | | | | | | | | | | | | | If the second argument was NULL, it would default to a new Randpool. But this introduces an annoying dependency: really it is the caller who is relying on Randpool. Make this explicit by passing a new Randpool pointer to the constructor in Library_State. This will break all callers using ANSI_X931_RNG's constructors with default arguments. To regain the previous behavior, change: ANSI_X931_RNG rng; ANSI_X931_RNG rng("/*cipher name*/"); to ANSI_X931_RNG rng(/*cipher name, default was AES-256 */, new Randpool); You are free to pass another PRNG object if you like. This make require inclusion of <botan/randpool.h> | ||||
* | Print the class tag type(s) on constructed forms | lloyd | 2008-05-08 | 1 | -0/+9 |
| | |||||
* | The BER decoder assumed that all constructed types would be tagged as | lloyd | 2008-05-08 | 2 | -5/+7 |
| | | | | | | | | | | | | universal: this prevented it from decoding application, context-specific, or private-class constructions. Add a new parameter to BER_Decoder::start_cons which specifies the expected class type (default universal). The decoder still verifies that the constructed bit is set in the class tag. This provides parity with the interface to the DER encoder. Problem was found and reported by Falko Strenzke | ||||
* | The log notes for 1.6.4 got lost when the logs were consolidated to a single ↵ | lloyd | 2008-05-05 | 1 | -0/+3 |
| | | | | file | ||||
* | Update notes and readme for 1.7.6 release1.7.6 | lloyd | 2008-05-05 | 2 | -2/+4 |
| | |||||
* | Update to not use Global_RNG | lloyd | 2008-05-05 | 1 | -2/+2 |
| | |||||
* | Remove unused headers | lloyd | 2008-05-04 | 1 | -6/+5 |
| | |||||
* | Remove Config::option_as_time, instead call timespec_to_u32bit in | lloyd | 2008-05-02 | 5 | -27/+21 |
| | | | | each caller. | ||||
* | Add a new function timespec_to_u32bit that handles a very simplistic | lloyd | 2008-05-01 | 3 | -27/+34 |
| | | | | | | time format and converts it to a duration in seconds represented as a u32bit. This is from Config::option_as_time, which is now implemented simply as: return timespec_to_u32bit(option(key)) | ||||
* | The ability to load ini-style files was removed almost 6 months | lloyd | 2008-04-30 | 1 | -2/+0 |
| | | | | | ago, but the Config class still contained the declaration for load_inifile() - remove it. | ||||
* | Remove unused include of <vector> | lloyd | 2008-04-29 | 1 | -2/+1 |
| | |||||
* | Instead of reading from the Config object every time to get the slack we | lloyd | 2008-04-29 | 2 | -15/+20 |
| | | | | | | should allow when checking timestamps, just call it once and store the value in the X509_Store object, passing it to validity_check with a new argument for the allowed time slack. |