aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey/ecdsa
Commit message (Collapse)AuthorAgeFilesLines
* Deconstify PK_Ops. It's quite reasonable that some op will want tolloyd2010-03-092-4/+4
| | | | | | | | | | | | | 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-052-6/+6
|
* Remove ECDSA_PublicKey::verifylloyd2010-03-052-40/+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-052-0/+49
|
* Remove the sign() operation from the public key objects, totally replacedlloyd2010-03-052-45/+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-052-0/+55
| | | | | | 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-022-36/+7
| | | | the various implementations
* Kill ECKAEG_Oplloyd2010-03-021-2/+0
|
* Remove ECDSA_Op and its attendant bitslloyd2010-03-026-281/+45
|
* Remove auto_ptr from ECC key typeslloyd2010-03-023-154/+40
|
* Remove a fairly useless member of EC_PublicKey that was only used forlloyd2010-03-022-46/+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
|
* Use a Modular_Reducer in ECDSA op for reductions mod the order of the grouplloyd2010-02-252-18/+9
|
* Move contents of gfpmath to numbertheory. Adjust dependencies.lloyd2010-02-251-1/+0
|
* Convert PointGFp::get_affine_{x,y} to return just the BigInt valuelloyd2010-02-251-3/+3
|
* Remove PointGFp::mult_this_securelloyd2010-02-242-5/+3
|
* 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.
* Remove unneeded iostream/stdio includeslloyd2009-12-211-3/+0
|
* Add missing BOTAN_DLL exports.lloyd2009-12-161-1/+1
| | | | Move most of the engine headers to internal
* Full working amalgamation build, plus internal-only headers concept.lloyd2009-12-161-11/+0
|
* Much cleaning up in ECDSA, though it's still rather a mess (and 50x slowerlloyd2009-11-186-151/+109
| | | | 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.
* Remove the 'realname' attribute on all modules and cc/cpu/os info files.lloyd2009-10-291-2/+0
| | | | | Pretty much useless and unused, except for listing the module names in build.h and the short versions totally suffice for that.
* 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
* Move some files around to break up dependencies between directorieslloyd2009-07-161-0/+1
|
* Add a script that reads the output of print_deps.py and rewriteslloyd2009-07-151-9/+10
| | | | | | the info.txt files with the right module dependencies. Apply it across the codebase.
* Move the contents of pubkey/pubkey (which was kind of a catch-all tolloyd2009-07-151-1/+0
| | | | | | | just toplevel pubkey). This was a convention I realized made sense sometime on when I was first doing the modularization changes. Move pkcs8.* and x509_key.* to pk_codecs
* engine.h had copies of some declarations from pk_engine.h that had notlloyd2009-05-131-1/+1
| | | | | | been removed when that portion of the code was split off. Remove the duplicated code from engine.h and update some code in pubkey that still relied on the declarations in engine.h instead of pk_engine.h
* Thomas Moschny passed along a request from the Fedora packagers which camelloyd2009-03-306-49/+61
| | | | | | | | | | | | | | | 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).
* Macro cleanuplloyd2008-11-091-1/+1
|
* Remove dependency on Default_Engine from pubkey codelloyd2008-11-081-11/+1
|
* Remove spurious trailing ; after blockslloyd2008-10-131-2/+2
|
* Decruftlloyd2008-10-121-36/+27
|
* Move ECDSA_Signature into CVC module. It is not used by ECDSA directly now.lloyd2008-10-115-202/+57
| | | | 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-093-11/+11
|
* Needed include of numthry.hlloyd2008-10-081-0/+1
|
* Fix problems with disabling ECDSAlloyd2008-10-081-56/+0
|
* Reformattinglloyd2008-10-082-5/+5
|
* Split ecdsa module into ecc_key, ecdsa, eckaeglloyd2008-10-0813-803/+292
| | | | | Add actual implementations (from InSiTo) for ECDSA_Operation and ECKAEG_Operation.
* Fix lookup for ECDSA keys. Fix ecdsa info.txtlloyd2008-10-071-1/+1
|
* Fix thatlloyd2008-10-074-289/+289
|
* Split ECDSA and ECKAEG implementatations apartlloyd2008-10-0711-1046/+1124
|
* Move last pieces of algorithm-specific code from general 'pubkey' modulelloyd2008-10-013-11/+55
| | | | | into algorithm-specific directories. (Dependencies still remain on these in core/libstate, though).
* Rename pk dir to pubkey, avoids tab-completion collision with pk_padlloyd2008-10-017-0/+1290