Move gcm decryption tag check higher up in the callstack
authorShane Lontis <shane.lontis@oracle.com>
Thu, 19 Sep 2019 08:40:07 +0000 (18:40 +1000)
committerShane Lontis <shane.lontis@oracle.com>
Fri, 20 Sep 2019 02:25:28 +0000 (12:25 +1000)
commit2e9645c8b9a81e7617395553088560847ac1b8c8
tree9a016607bd392574a39f56756958c9a2488628cc
parentfbad6e79fae1ed12c5d3b5611f490e75066adfad
Move gcm decryption tag check higher up in the callstack

Code was updated for s390 that accidently removed the check inside the final method.
Moving the check up before the final method is called is a better way of handling this.
The oneshot method also calls the final method but doesnt need to do this check.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9945)
providers/common/ciphers/cipher_gcm.c
providers/common/ciphers/cipher_gcm_hw.c