Josh Rickmar
98ac46b37d
Add ParseDERSignature.
...
This change adds an additional signature parsing function which
performs additional checks to verify the signature is serialized in a
valid DER (and thus, unique) format, instead of allowing the less
strict BER signatures that ParseSignature will happily accept.
Added additional tests and updated test coverage to reflect changes.
2013-10-25 15:09:48 -04:00
Josh Rickmar
961636c764
Add functions to serialize an ecdsa public key.
2013-09-30 18:18:03 -04:00
Owain G. Ainsworth
031437decf
test 0 length numbers (disallowed) and coordinates of 0 (also)
2013-06-18 00:17:32 +01:00
Owain G. Ainsworth
13cf6091e6
Test the sanity checks for numbers too big for the curve fire correctly.
2013-06-17 23:58:47 +01:00
Owain G. Ainsworth
316faf034c
update test coverage stats.
2013-06-17 17:41:37 +01:00
Owain G. Ainsworth
9cb1f47fb9
add signature test harness and try a valid signature for size.
...
error paths to come.
2013-06-14 01:11:06 +01:00
Owain G. Ainsworth
7cfebed976
Test the ``parameter is >= P'' pubkey error paths.
2013-06-14 00:28:54 +01:00
Owain G. Ainsworth
9638528b8e
test hybrid keys too.
...
Nothing that I know of uses them, but if we have the code path we should
be pretty sure it works.
2013-06-14 00:06:25 +01:00
Dave Collins
6e9cc57131
Initial implementation.
2013-06-13 14:38:54 -05:00