Ensure we never use a partially initialised CMAC_CTX
authorMatt Caswell <matt@openssl.org>
Wed, 27 May 2020 10:37:39 +0000 (11:37 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 10 Jun 2020 11:58:26 +0000 (12:58 +0100)
commitb896d9436d69c67f9d10ffcc8aed15db42c08766
treece4a86124c05c3d1bce880aa4977ce605d88cf04
parent317ffa576bc6d0eacec310f50f951c5d895c802e
Ensure we never use a partially initialised CMAC_CTX

If the CMAC_CTX is partially initialised then we make a note of this so
that future operations will fail if the initialisation has not been
completed.

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