]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix kbkdf bug if MAC is set to KMAC and then something else
authorPauli <ppzgs1@gmail.com>
Mon, 15 Jul 2024 03:26:50 +0000 (13:26 +1000)
committerPauli <ppzgs1@gmail.com>
Wed, 17 Jul 2024 04:14:41 +0000 (14:14 +1000)
commitf35fc4f184fa8a2088cd16648c4017fa321d6712
tree30db493508fc7f6993a5ed28260f427349f3d148
parent4ac531ddcb78e531f9e40166a9d1149b00838f5f
Fix kbkdf bug if MAC is set to KMAC and then something else

A context that is set to KMAC sets the is_kmac flag and this cannot be reset.
So a user that does kbkdf using KMAC and then wants to use HMAC or CMAC will
experience a failure.

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24883)
providers/implementations/kdfs/kbkdf.c