eng_devcrypto: expand digest failure cases
authorEneas U de Queiroz <cote2004-github@yahoo.com>
Wed, 14 Nov 2018 13:22:14 +0000 (11:22 -0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 10 Dec 2018 12:22:14 +0000 (13:22 +0100)
commitadd2ab1f289c24a1563c5b895d5cd133fe874f12
tree63de837b7d55748fc577887f077f51f546c3e312
parentbe5cf61caa425070ec4f3e925d4e9aa484c8315b
eng_devcrypto: expand digest failure cases

Return failure when the digest_ctx is null in digest_update and
digest_final, and when md is null in digest_final.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7585)

(cherry picked from commit 4d9f99654441e36fdcb49540a1dbc9d4c70ccb68)
crypto/engine/eng_devcrypto.c