Cory Fields
1d1073c2d3
consensus: cache the openssl EC_GROUP to avoid a race condition for each CECKey instantiation
9 years ago
Wladimir J. van der Laan
c6b7b29f23
Improve robustness of DER recoding code
...
Add some defensive programming on top of #5634 .
This copies the respective OpenSSL code in ECDSA_verify in
OpenSSL pre-1.0.1k (e.g. https://github.com/openssl/openssl/blob/OpenSSL_1_0_1j/crypto/ecdsa/ecs_vrf.c#L89 )
more closely.
As reported by @sergiodemianlerner .
10 years ago
Cory Fields
8dccba6a45
fail immediately on an empty signature
10 years ago
Cory Fields
488ed32f2a
consensus: guard against openssl's new strict DER checks
...
New versions of OpenSSL will reject non-canonical DER signatures. However,
it'll happily decode them. Decode then re-encode before verification in order
to ensure that it is properly consumed.
10 years ago
sandakersmann
f914f1a746
Added "Core" to copyright headers
...
Github-Pull: #5494
Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
10 years ago
Michael Ford
fa94b9d562
Convert remaining comments in /src to doxygen format
...
- Update comments in checkpoints to be doxygen compatible
- Update comments in checkqueue to be doxygen compatible
- Update coins to be doxygen compatible
- Fix comment typo in crypter.h
- Update licenses/copyright dates
Closes #5325 #5184 #5183 #5182
10 years ago
Pieter Wuille
230f7a833d
Remove unused ecwrapper code
10 years ago
Pieter Wuille
f4e0aefadc
Do signature-s negation inside the tests
...
To avoid the need for libsecp256k1 to expose such functionality.
10 years ago
Philip Kaufmann
771d500283
minor cleanup: include orders, end comments etc.
...
- no code changes
10 years ago
Cory Fields
50f71cd52e
boost: code movement only: split CECKey into separate files
10 years ago