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>
Fri, 19 Jun 2020 10:41:23 +0000 (11:41 +0100)
commit86863f2ddc4200e5048e28c40ed6521495010699
treea2bf3f84f9e287c10783db13b3b46e5f89269fa9
parente705b920bf9a6737b5abcb57ca14824959e1e630
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: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/12107)
crypto/cmac/cmac.c