From 25055cde9156268f32e61836f648aa0af128c05d Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Tue, 22 Sep 2026 09:13:47 +0200 Subject: [PATCH] crypto/vmac: don't cast away const-ness in aes_key_setup() vmac_set_key() passes in a pointer-to-const, which has const-ness removed despite rijndaelKeySetupEnc() properly taking pointer-to-const. No functional change. Signed-off-by: Jan Beulich Reviewed-by: Volodymyr Babchuk --- xen/include/crypto/vmac.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/include/crypto/vmac.h b/xen/include/crypto/vmac.h index 735d2760a5..98e50b242f 100644 --- a/xen/include/crypto/vmac.h +++ b/xen/include/crypto/vmac.h @@ -69,7 +69,7 @@ typedef u32 aes_int_key[4*(VMAC_KEY_LEN/32+7)]; (u8 *)(in), (u8 *)(out)) #define aes_key_setup(user_key,int_key) \ rijndaelKeySetupEnc((u32 *)(int_key), \ - (u8 *)(user_key), \ + (const u8 *)(user_key), \ VMAC_KEY_LEN) #endif