aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey/ecdsa/ecdsa.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use size_t instead of u32bit in all of pubkeylloyd2010-10-121-3/+3
|
* If we generate a k such that s or r is 0, don't fail, simply retrylloyd2010-09-261-11/+13
| | | | with a new k.
* First set of changes for avoiding use implicit vector->pointer conversionslloyd2010-09-131-2/+2
|
* KeyPair::check_key's behavior of throwing an exception upon failure waslloyd2010-03-211-0/+13
| | | | | | | | | | | | | | 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
* Use a Modular_Reducer in ECDSA oplloyd2010-03-131-6/+6
|
* 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().
* Constify sign and verify opslloyd2010-03-051-4/+4
|
* Remove ECDSA_PublicKey::verifylloyd2010-03-051-30/+0
|
* Add verification ops for all signature key typeslloyd2010-03-051-0/+30
|
* Remove the sign() operation from the public key objects, totally replacedlloyd2010-03-051-35/+6
| | | | | | 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-0/+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
* Add some simple constructors to the EC_ base key types to simplifylloyd2010-03-021-33/+0
| | | | the various implementations
* Remove ECDSA_Op and its attendant bitslloyd2010-03-021-30/+45
|
* Remove auto_ptr from ECC key typeslloyd2010-03-021-120/+26
|
* Remove a fairly useless member of EC_PublicKey that was only used forlloyd2010-03-021-34/+0
| | | | | | | handling ImplicitCA ECDSA keys in the CVC code. Currently dealt with in CVC by simply commenting out the calls - CVC is already pretty broken and I'd much rather have ECC sane and under control and CVC totally broken than ECC remaining in its current state.
* Clean up EC_Domain_Paramslloyd2010-03-011-1/+1
|
* Remove PointGFp::mult_this_securelloyd2010-02-241-3/+2
|
* Add copyright and license notes to pretty much every file that didn't have them,lloyd2009-12-311-2/+2
| | | | | | | | including the examples and self-test code. Most of these files had not copyright/license information at all; since a major point of the examples is to allow users to copy and paste code that already does something they want, an ambigious license is not good.
* Much cleaning up in ECDSA, though it's still rather a mess (and 50x slowerlloyd2009-11-181-42/+34
| | | | than OpenSSL... that's a problem for another branch though).
* Split up util.h into 3 fileslloyd2009-09-171-1/+0
| | | | | | | - rounding.h (round_up, round_down) - workfactor.h (dl_work_factor) - timer.h (system_time) And update all users of the previous util.h
* Thomas Moschny passed along a request from the Fedora packagers which camelloyd2009-03-301-10/+12
| | | | | | | | | | | | | | | 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).
* Decruftlloyd2008-10-121-36/+27
|
* Move ECDSA_Signature into CVC module. It is not used by ECDSA directly now.lloyd2008-10-111-12/+38
| | | | Change several ECC functions to return const references instead of const values.
* Fix problems with disabling ECDSAlloyd2008-10-081-56/+0
|
* Split ecdsa module into ecc_key, ecdsa, eckaeglloyd2008-10-081-72/+27
| | | | | Add actual implementations (from InSiTo) for ECDSA_Operation and ECKAEG_Operation.
* Split ECDSA and ECKAEG implementatations apartlloyd2008-10-071-41/+281
|
* Rename pk dir to pubkey, avoids tab-completion collision with pk_padlloyd2008-10-011-0/+72