Validate the SM2 digest len before use
authorMatt Caswell <matt@openssl.org>
Mon, 10 Sep 2018 15:53:17 +0000 (16:53 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 10 Sep 2018 16:28:33 +0000 (17:28 +0100)
commitd689f313cc5ebe2763fb26d1e7f8cd53b7da6a4a
tree91a4974000ece0e4b8c34a53f92afd17b93058f3
parent52307f94f8f3e5a1cd392f0a48802a24ccf73ba2
Validate the SM2 digest len before use

Fixes a Coverity complaint.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7170)
crypto/sm2/sm2_pmeth.c