Merge #10657: Utils: Improvements to ECDSA key-handling code
commit79399c8cd0b6030034eea5feed3a7523e369b256
authorWladimir J. van der Laan <laanwj@gmail.com>
Wed, 20 Dec 2017 16:22:56 +0000 (20 17:22 +0100)
committerWladimir J. van der Laan <laanwj@gmail.com>
Wed, 20 Dec 2017 17:00:32 +0000 (20 18:00 +0100)
tree4a362d4c2b81badfe94c9f38d730e8e098882ef4
parentbc66765144296f10ec8f9c9a437e74f22c70d235
parent63179d028347bf3e32c7ea61386df4c44307b4a7
Merge #10657: Utils: Improvements to ECDSA key-handling code

63179d0 Scope the ECDSA constant sizes to CPubKey / CKey classes (Jack Grigg)
1ce9f0a Ensure that ECDSA constant sizes are correctly-sized (Jack Grigg)
48abe78 Remove redundant `= 0` initialisations (Jack Grigg)
17fa391 Specify ECDSA constant sizes as constants (Jack Grigg)
e4a1086 Update Debian copyright list (Jack Grigg)
e181dbe Add comments (Jack Grigg)
a3603ac Fix potential overflows in ECDSA DER parsers (Jack Grigg)

Pull request description:

  Mostly trivial, but includes fixes to potential overflows in the ECDSA DER parsers.

  Cherry-picked from Zcash PR https://github.com/zcash/zcash/pull/2335

Tree-SHA512: 8fcbd51b0bd6723e5d33fa5d592f7cb68ed182796a9b837ecc8217991ad69d6c970258617dc00eb378c8caa4cec5d6b304d9d2c066acd40cda98e4da68e0caa4
src/key.cpp
src/key.h
src/pubkey.cpp
src/pubkey.h
src/script/interpreter.cpp