aboutsummaryrefslogtreecommitdiffstats
path: root/src/dsa_gen.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Avoid using global rng in DL_Group::generate_dsa_primeslloyd2008-05-241-6/+5
|
* Previously random_integer and friends used the global PRNG object to getlloyd2008-05-241-4/+6
| | | | | | | | | | | | | 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.
* propagate from branch 'net.randombit.botan' (head ↵lloyd2008-04-101-11/+2
|\ | | | | | | | | | | 6afe2db1f710f75bc27e189bb8bdb23613ce1ca3) to branch 'net.randombit.botan.remove-libstate' (head e40f0dbdfd847024c30fa0092c2acefc19a550b8)
| * Remove the Global_RNG namespace, along with rng.h and rng.cpp. This waslloyd2008-04-071-3/+2
| | | | | | | | | | | | | | | | | | essentially a facade for the RNG object living in the global library state. Rewrite all callers to directly invoke the global state object: this makes it more clear what functions are actually accessing mutable state outside of the normal reference graph (and thus, which functions will have to be altered in order to remove this dependency). Other facades remain in place for the configuration object and the memory allocator factory.
| * The intent of this branch is to remove the global library state objectlloyd2008-04-071-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | (Library_State, in libstate.{h,cpp}). It causes numerous 'interesting' problems with threads, etc, and the best solution here is to move to more or less an object-capability model, where the only objects that a piece of code can access are those which can be referenced through its arguments. First things first, remove the UI 'pulse' code. It is neither necessary nor sufficient for writing proper GUI/event driven code using Botan, has likely never been used in real code, and, given that, causes a distressing amount of overhead in terms of function calls made.
* | Change the copyrights in all files in the Botan tree to directly reflectlloyd2008-04-101-1/+1
|/ | | | | | the actual copyright holders. For rationale, see my post to botan-devel on April 9, subject 'Changing license to directly reflect contributors' (http://www.randombit.net/pipermail/botan-devel/2008-April/000527.html)
* Mostly revert 2f4fd18182d5a75c40cd831e7ee3c314be5c57d6, only keep thelloyd2008-03-101-1/+1
| | | | | updated dates on files that have actually changed this year. This makes the diff across versions readable again.
* Mass update of the copyright date. Honestly I don't know why I bother,lloyd2008-02-141-1/+1
| | | | | | | but might as well keep it up to date. And it's easier to do it once with a 'perl -pi' command than to update each file over time. Apologies to anyone looking at diffs.
* bit_ops.h no longer includes loadstor.hlloyd2007-10-191-1/+0
| | | | | | | | | Where loadstor.h was needed but only implicitly included via bit_ops.h, include it directly Add endian reversal functions to bit_ops.h Remove some unneeded includes in big_ops2.cpp and a few other files.
* Small cleanups.lloyd2007-03-101-1/+0
|
* Introduce a class Seed which represents the domain parameter seed, ratherlloyd2007-03-041-15/+30
| | | | than using an unadorned buffer with the increment() function.
* Alter one of the constructors of DL_Group to take a parameter specifyinglloyd2007-03-031-31/+46
| | | | | | | | | how big q should be. Add FIPS 186-3 DSA parameter generation, this allows for generating larger (2048 and 3072 bit) DSA keys. At this time there do not seem to be official test vectors for 186-3, and I have not checked against other implementations. Tests will be constructed using the latest OpenSSL snapshot.
* Split DSA parameter generation into src/dsa_gen.cpp, and make the functionslloyd2007-03-011-0/+111
members of DL_Group (the only place they were called within the source, and outside of some rather esoteric things probably the only place you would ever need it).