From c953486decd34948f73c14ba05fb08b05f8b635f Mon Sep 17 00:00:00 2001 From: Ingo Franzki Date: Tue, 9 Jun 2026 10:12:26 +0200 Subject: [PATCH] zkey-cryptsetup: Fix handling of 'hmac(sha512)' integrity algorithm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix a copy & paste error on handling the 'hmac(sha512)' integrity algorithm with the 'convert' command. Fixes: 97136585da64 ("zkey-cryptsetup: Support PHMAC integrity with convert command") Reviewed-by: Finn Callies Signed-off-by: Ingo Franzki Signed-off-by: Jan Höppner --- zkey/zkey-cryptsetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zkey/zkey-cryptsetup.c b/zkey/zkey-cryptsetup.c index 5293f2b5..f4649b56 100644 --- a/zkey/zkey-cryptsetup.c +++ b/zkey/zkey-cryptsetup.c @@ -3040,7 +3040,7 @@ static int command_convert(void) strcmp(ip.integrity, "hmac(sha256") == 0) hmac_vp_alg = "hmac(sha256)"; else if (strcmp(ip.integrity, "hmac(sha384)") == 0 || - strcmp(ip.integrity, "hmac(sha512)") != 0) + strcmp(ip.integrity, "hmac(sha512)") == 0) hmac_vp_alg = "hmac(sha512)"; rc = generate_hmac_key_verification_pattern(key + ekeysize,