Jack Grigg
84f797b2c5
Ensure correctness if asserts are compiled out
2016-09-30 18:54:16 +13:00
Jack Grigg
f463df0e57
Use asserts to check allocation errors in CECKey::Recover
2016-09-30 14:17:14 +13:00
Jack Grigg
017abaf694
Assert that new OpenSSL allocators succeed
2016-09-29 17:58:29 +13:00
Jack Grigg
fa318aa9fe
Upgrade OpenSSL to 1.1.0b
...
Closes #1348
2016-09-29 12:34:09 +13:00
Cory Fields
100ac4e185
consensus: cache the openssl EC_GROUP to avoid a race condition for each CECKey instantiation
...
Github-Pull: #6571
Rebased-From: 1d1073c2d3231a9de4adbc2bc46846fc20b34f9e
2015-08-20 16:37:50 +02:00
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.
2015-01-12 08:59:03 +01:00
Cory Fields
8dccba6a45
fail immediately on an empty signature
2015-01-09 22:06:55 -05:00
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.
2015-01-09 21:31:31 -05:00
sandakersmann
f914f1a746
Added "Core" to copyright headers
...
Github-Pull: #5494
Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
2014-12-19 19:55:32 +01:00
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
2014-11-21 14:44:21 +01:00
Pieter Wuille
230f7a833d
Remove unused ecwrapper code
2014-11-19 12:29:41 +01:00
Pieter Wuille
f4e0aefadc
Do signature-s negation inside the tests
...
To avoid the need for libsecp256k1 to expose such functionality.
2014-11-10 05:03:24 -08:00
Philip Kaufmann
771d500283
minor cleanup: include orders, end comments etc.
...
- no code changes
2014-10-31 09:41:15 +01:00
Cory Fields
50f71cd52e
boost: code movement only: split CECKey into separate files
2014-10-27 15:00:58 -04:00