aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey/nr/nr.cpp
Commit message (Collapse)AuthorAgeFilesLines
* More changes to avoid vector to pointer implicit conversionslloyd2010-09-141-2/+2
|
* KeyPair::check_key's behavior of throwing an exception upon failure waslloyd2010-03-211-15/+1
| | | | | | | | | | | | | | not useful; in all cases, we immediately caught it and then returned false. Modify as follows: - Create the pubkey objects inside the checking code, so calling code doesn't need to do it. - Return true/false for pass/fail Also add consistency checking for ECDSA keys
* DSA and NR require certain parameters (which depend on the randomlylloyd2010-03-091-9/+12
| | | | | | choosen nonce) not be 0. Previously it would just check and throw an exception if this was the case. Change to generate a new nonce and retry if this happens.
* Deconstify PK_Ops. It's quite reasonable that some op will want tolloyd2010-03-091-2/+2
| | | | | | | | | | | | | precompute only as needed, or will want to access some other expensive resource or etc. Change how the secret for generating blinding is done in cases where a PRNG isn't available. Use the operations public op to hide the secret, for instance the seed for a DH blinding variable is 2^x mod p. Make use of being able to mutate internal structures in the RW signer, since that does have access to a PRNG, so use it to initialize the blinder on first call to sign().
* Modify pubkey classes to take names instead of object pointers.lloyd2010-03-081-4/+5
| | | | | Remove use of look_pk from the source and examples, instead instantiate classes directly.
* Constify sign and verify opslloyd2010-03-051-4/+4
|
* Remove NR and DSA specific hookslloyd2010-03-051-15/+0
|
* Add verification ops for all signature key typeslloyd2010-03-051-0/+27
|
* Remove the sign() operation from the public key objects, totally replacedlloyd2010-03-051-17/+1
| | | | | | by using the ops. Add real ECDSA test vectors (two found in ANSI X9.62)
* Add signature generation operation classes. Remove sign() fromlloyd2010-03-051-1/+36
| | | | | | PK_Signing_Key, though for the moment the class remains because there are a few pieces of code that use it to detect if signatures are supported, or for passing to functions in look_pk
* Remove NR load hookslloyd2010-03-041-38/+22
|
* Thomas Moschny passed along a request from the Fedora packagers which camelloyd2009-03-301-31/+33
| | | | | | | | | | | | | | | up during the Fedora submission review, that each source file include some text about the license. One handy Perl script later and each file now has the line Distributed under the terms of the Botan license after the copyright notices. While I was in there modifying every file anyway, I also stripped out the remainder of the block comments (lots of astericks before and after the text); this is stylistic thing I picked up when I was first learning C++ but in retrospect it is not a good style as the structure makes it harder to modify comments (with the result that comments become fewer, shorter and are less likely to be updated, which are not good things).
* Split Diffie-Hellman off almost completely, such that nearly none oflloyd2008-10-011-0/+1
| | | | | | | | | | it builds if it is disabled. Current deficiency: due to #if defined(BLAH) in the engine code, Botan will not be binary compat across different configurations b/c the vtable will change size. Move some source from core/ to core/libstate where it belonged (engine stuff)
* Rename pk dir to pubkey, avoids tab-completion collision with pk_padlloyd2008-10-011-0/+131