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 <[email protected]>
---
I was wondering whether I shouldn't adjust the adjacent aes_encryption()
right away as well.

--- 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/
                                            (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
 


Reply via email to