mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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 <jbeulich@suse.com> Reviewed-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
This commit is contained in:
1 parent
40ad6282e2
commit
25055cde91
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||