aboutsummaryrefslogtreecommitdiffstats
path: root/src/if_algo.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove load checking, as it requires an RNG (at least at the moment).lloyd2008-06-271-9/+5
| | | | | | | | | 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.lloyd2008-06-271-1/+1
| | | | Public version doesn't need an RNG argument.
* Convert pkcs8_decoder() and x509_decoder() to take a RandomNumberGenerator&lloyd2008-06-201-4/+4
| | | | | | | | 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 hookslloyd2008-06-201-14/+18
|
* Pass an RNG reference to IF_Corelloyd2008-05-241-2/+3
|
* Pass a RNG reference to load_check and gen_check functionslloyd2008-05-241-3/+4
|
* Avoid using the global RNG in check_key, instead pass a reference.lloyd2008-05-241-5/+4
| | | | Update the examples
* Previously random_integer and friends used the global PRNG object to getlloyd2008-05-241-1/+3
| | | | | | | | | | | | | 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.
* Avoid C-style casts (as detected by GCC's -Wold-style-cast) and instead use lloyd2007-07-231-1/+1
| | | | static_cast or reinterpret_cast, as needed.
* Bump copyright year to 2007lloyd2007-01-201-1/+1
|
* Hack around some Visual Studio bugs that I can't seem to find good solutionslloyd2006-09-101-2/+1
| | | | for.
* Split PK_Key into Public_Key and Private_Key; these new classes merge inlloyd2006-09-061-2/+7
| | | | the interfaces previously included in X509_PublicKey and PKCS8_PrivateKey.
* Implement codec objects for private keys as well.lloyd2006-09-061-69/+79
|
* First step in a major rewrite of the high level public key code. Thelloyd2006-09-061-22/+62
| | | | | | X509_PublicKey object now offers interfaces that return encoder and decoder objects. Eventually these changes will make it much easier to support alternate key formats like OpenPGP.
* Syntax changes to the BER and DER APIs to improve readability of codelloyd2006-05-191-23/+22
| | | | | that uses them. These changes are not backwards compatible, this commit updates all uses of the APIs within the library.
* Initial checkin1.5.6lloyd2006-05-181-0/+157