When using EVP_PKEY_derive with a KDF set, a negative error from
authorMatt Caswell <matt@openssl.org>
Wed, 19 Nov 2014 20:09:19 +0000 (20:09 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 20 Nov 2014 15:21:37 +0000 (15:21 +0000)
commit6f71d7da640b5cd5238b6816e0819eec460bee69
treed63e39be99f5b5cf9135b1389d61990ce6be959a
parent0b9e82763f1e00abb4217b714be976d978829976
When using EVP_PKEY_derive with a KDF set, a negative error from
ECDH_compute_key is silently ignored and the KDF is run on duff data

Thanks to github user tomykaira for the suggested fix.

Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
(cherry picked from commit 8d02bebddf4b69f7f260adfed4be4f498dcbd16c)
crypto/ec/ec_pmeth.c