aboutsummaryrefslogtreecommitdiffstats
path: root/src/elgamal.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Modularize the public key algorithms, though currently a great deal oflloyd2008-09-281-121/+0
| | | | | | the underlying implementation goop remains in the core library instead of being shunted off, due to various dependencies it has (most of which it shouldn't).
* Remove load checking, as it requires an RNG (at least at the moment).lloyd2008-06-271-5/+3
| | | | | | | | | 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.
* Similiar combining transform for the ElGamal, DSA, and NR private keylloyd2008-06-201-17/+11
| | | | constructors.
* Pass a RandomNumberGenerator& to the PK_Core constructors and the variouslloyd2008-06-201-10/+11
| | | | public key object loading hooks.
* Pass RandomNumberGenerator references to public key operations that needlloyd2008-06-101-5/+4
| | | | | | | 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.
* Wrap at 80 columnslloyd2008-05-251-1/+2
|
* Remove random_integer() and replace it with a BigInt constructor taking alloyd2008-05-241-5/+3
| | | | RandomNumberGenerator reference. Update all callers.
* Keypair::check_key no longer references global PRNGlloyd2008-05-241-2/+4
|
* Pass a RNG reference to load_check and gen_check functionslloyd2008-05-241-3/+3
|
* Avoid using the global RNG in check_key, instead pass a reference.lloyd2008-05-241-2/+2
| | | | Update the examples
* Previously random_integer and friends used the global PRNG object to getlloyd2008-05-241-3/+8
| | | | | | | | | | | | | 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.
* 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.
* Bump copyright year to 2007lloyd2007-01-201-1/+1
|
* Split PK_Key into Public_Key and Private_Key; these new classes merge inlloyd2006-09-061-5/+8
| | | | the interfaces previously included in X509_PublicKey and PKCS8_PrivateKey.
* Initial checkin1.5.6lloyd2006-05-181-0/+120