aboutsummaryrefslogtreecommitdiffstats
path: root/checks/ecdsa.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update all uses of MemoryRegion::append to use either push_back or operator+=lloyd2010-09-151-5/+3
|
* Anywhere where we use MemoryRegion::begin to get access to the raw pointerlloyd2010-09-131-5/+5
| | | | | representation (rather than in an interator context), instead use &buf[0], which works for both MemoryRegion and std::vector
* Call test that was defined but not usedlloyd2010-09-071-4/+5
|
* Use the standalone version of the hex decoder instead of the wrapper thatlloyd2010-09-031-8/+8
| | | | previously existed in misc.cpp that emulated it via a pipe and filter.
* Replace PointGFp::check_invaraints, which would either return silentlylloyd2010-03-191-2/+2
| | | | | | | | | | | or throw an exception, with PointGFp::on_the_curve, which returns a bool. Update callers. This showed several cases where check_invaraints was being called multiple times, for instance when decoding a point with OS2ECP, check_invaraints was called; many callers of OS2ECP would then call check_invaraints again on the same object.
* Modify pubkey classes to take names instead of object pointers.lloyd2010-03-081-41/+48
| | | | | Remove use of look_pk from the source and examples, instead instantiate classes directly.
* Remove the sign() operation from the public key objects, totally replacedlloyd2010-03-051-110/+54
| | | | | | by using the ops. Add real ECDSA test vectors (two found in ANSI X9.62)
* Add a new constructor to each public key algorithm (only the publiclloyd2010-03-041-40/+1
| | | | | | | 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.
* Avoid warnings under VC++ in ECC testslloyd2010-03-031-1/+1
|
* Modify the ECDSA signature OIDs. Previously the ones using the BSIlloyd2010-03-021-1/+1
| | | | | | | | | | | scheme, which is supposed to use the IEEE 1363-style concatenation format, was identified with the X9.62 OIDs, which are documented to use the DER sequence format. Switch the BSI ones to use the OIDs allocated for this purpose by BSI, and add the X9.62 ECDSA/SHA-1 OID since that was missing. Correct an ECDSA test that assumed the cert was identified with the BSI OID, even though in fact the cert in question uses an X9.62-style format.
* Remove auto_ptr from ECC key typeslloyd2010-03-021-2/+1
|
* Kill get_EC_Dom_Pars_by_oidlloyd2010-03-011-6/+7
|
* CurveGFp: Inline, deleting source file. Store only a,b,p aslloyd2010-02-251-2/+2
| | | | | BigInts. Also reorder constructor args to p, a, b which seems more sensible to me.
* Fix a test broken by the recent exception hierarchy changeslloyd2010-01-121-10/+2
|
* Spellinglloyd2008-10-131-2/+2
|
* ECDSA test cleanup. Remove some old commented out code.lloyd2008-10-121-40/+41
|
* Cleanup ECDSA tests. Enable test_ec_sign testlloyd2008-10-121-23/+12
|
* Move InSiTo's ECDSA tests into the main test suitelloyd2008-10-121-0/+566