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:19:26 +0000 (13:19 +0100)
commit4d9f99654441e36fdcb49540a1dbc9d4c70ccb68
tree8181fb2fbdb39df9f569d7acdfa76f45b2f9dd70
parentd9d4dff5c640990d45af115353fc9f88a497a56c
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)
crypto/engine/eng_devcrypto.c