aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey/ecdsa/ecdsa.h
Commit message (Collapse)AuthorAgeFilesLines
* ECC private keys had two different constructors, one taking a grouplloyd2011-04-081-12/+10
| | | | | | | | | | | | | | | | and a random number generator, and the other taking a group and a preset private key value. The DL private keys instead have on constructor for this; if the x value is zero, then a new random key is created. For consistency, do this with ECC as well. ECDH actually didn't have one of these constructors, forcing you to either load from PKCS #8 or else use a random key. Rename EC_Domain_Params to EC_Group, with a typedef for compatability. More doc updates. Update mtn ignores for Sphinx output
* Use size_t instead of u32bit in all of pubkeylloyd2010-10-121-12/+12
|
* More Doxygen updates/fixeslloyd2010-06-151-0/+6
|
* Fix a few hundred Doxygen warningslloyd2010-06-151-2/+4
|
* KeyPair::check_key's behavior of throwing an exception upon failure waslloyd2010-03-211-0/+2
| | | | | | | | | | | | | | 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-0/+2
|
* 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().
* Remove the now no-op classes PK_Encrypting_Key,lloyd2010-03-081-4/+2
| | | | | PK_Decrypting_Key, PK_Signing_Key, PK_Verifying_with_MR_Key, and PK_Verifying_wo_MR_Key.
* Constify sign and verify opslloyd2010-03-051-2/+2
|
* Remove ECDSA_PublicKey::verifylloyd2010-03-051-10/+0
|
* Rename PK_Ops::Signature_Operation to PK_Ops::Signaturelloyd2010-03-051-1/+1
| | | | Rename PK_Ops::KA_Operation to PK_Ops::Key_Agreement
* Add verification ops for all signature key typeslloyd2010-03-051-0/+19
|
* Remove the sign() operation from the public key objects, totally replacedlloyd2010-03-051-10/+0
| | | | | | 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/+19
| | | | | | 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 similar decoding constructors to the private keyslloyd2010-03-041-5/+4
|
* Add a new constructor to each public key algorithm (only the publiclloyd2010-03-041-14/+14
| | | | | | | keys so far, private keys not changed) that takes an AlgorithmIdentifier and a MemoryRegion<byte>&. This performs the X.509 decoding. It is not possible anymore to create uninitialized PK objects.
* Add some simple constructors to the EC_ base key types to simplifylloyd2010-03-021-3/+7
| | | | the various implementations
* Remove ECDSA_Op and its attendant bitslloyd2010-03-021-9/+0
|
* Remove auto_ptr from ECC key typeslloyd2010-03-021-30/+4
|
* Remove a fairly useless member of EC_PublicKey that was only used forlloyd2010-03-021-12/+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.
* Much cleaning up in ECDSA, though it's still rather a mess (and 50x slowerlloyd2009-11-181-0/+12
| | | | than OpenSSL... that's a problem for another branch though).
* Make set_all_values in {ECDSA,ECKAEG}_{Public,Private}Key all non-virtual;lloyd2009-11-101-3/+2
| | | | | | | virtual-ness not needed, and was overriding/overloading by argument which doesn't actually work in C++ and only happened to work because it was only ever used with the version implemented in that same class. ICC was warning, too. Make non-virtual.
* Thomas Moschny passed along a request from the Fedora packagers which camelloyd2009-03-301-7/+9
| | | | | | | | | | | | | | | 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).
* Remove spurious trailing ; after blockslloyd2008-10-131-2/+2
|
* Move ECDSA_Signature into CVC module. It is not used by ECDSA directly now.lloyd2008-10-111-17/+19
| | | | Change several ECC functions to return const references instead of const values.
* Add BOTAN_DLL macro to public class definitions that were missing it.lloyd2008-10-091-5/+5
|
* Reformattinglloyd2008-10-081-4/+4
|
* Split ecdsa module into ecc_key, ecdsa, eckaeglloyd2008-10-081-0/+1
| | | | | Add actual implementations (from InSiTo) for ECDSA_Operation and ECKAEG_Operation.
* Split ECDSA and ECKAEG implementatations apartlloyd2008-10-071-69/+109
|
* Rename pk dir to pubkey, avoids tab-completion collision with pk_padlloyd2008-10-011-0/+100