|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] crypto/vmac: don't cast away const-ness in aes_key_setup()
commit 25055cde9156268f32e61836f648aa0af128c05d
Author: Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Tue Sep 22 09:13:47 2026 +0200
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Tue Sep 22 09:13:47 2026 +0200
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@xxxxxxxx>
Reviewed-by: Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>
---
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
--
generated by git-patchbot for /home/xen/git/xen.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |