projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix compiler warnings.
[openssl.git]
/
crypto
/
aes
/
aes_x86core.c
diff --git
a/crypto/aes/aes_x86core.c
b/crypto/aes/aes_x86core.c
index b7f540b22ea05112ff54b1f94c7894d02f433904..3db36ff6102bee27ffab669e5e70a8724292d5fa 100644
(file)
--- a/
crypto/aes/aes_x86core.c
+++ b/
crypto/aes/aes_x86core.c
@@
-69,10
+69,10
@@
Te1[x] = S [x].[03, 02, 01, 01];
Te2[x] = S [x].[01, 03, 02, 01];
Te3[x] = S [x].[01, 01, 03, 02];
*/
Te2[x] = S [x].[01, 03, 02, 01];
Te3[x] = S [x].[01, 01, 03, 02];
*/
-#define Te0 ((u64*)((u8*)Te+0))
-#define Te1 ((u64*)((u8*)Te+3))
-#define Te2 ((u64*)((u8*)Te+2))
-#define Te3 ((u64*)((u8*)Te+1))
+#define Te0 (
u32)(
(u64*)((u8*)Te+0))
+#define Te1 (
u32)(
(u64*)((u8*)Te+3))
+#define Te2 (
u32)(
(u64*)((u8*)Te+2))
+#define Te3 (
u32)(
(u64*)((u8*)Te+1))
/*
Td [x] = Si[x].[0e, 09, 0d, 0b, 0e, 09, 0d, 0b];
Td0[x] = Si[x].[0e, 09, 0d, 0b];
/*
Td [x] = Si[x].[0e, 09, 0d, 0b, 0e, 09, 0d, 0b];
Td0[x] = Si[x].[0e, 09, 0d, 0b];
@@
-81,10
+81,10
@@
Td2[x] = Si[x].[0d, 0b, 0e, 09];
Td3[x] = Si[x].[09, 0d, 0b, 0e];
Td4[x] = Si[x].[01];
*/
Td3[x] = Si[x].[09, 0d, 0b, 0e];
Td4[x] = Si[x].[01];
*/
-#define Td0 ((u64*)((u8*)Td+0))
-#define Td1 ((u64*)((u8*)Td+3))
-#define Td2 ((u64*)((u8*)Td+2))
-#define Td3 ((u64*)((u8*)Td+1))
+#define Td0 (
u32)(
(u64*)((u8*)Td+0))
+#define Td1 (
u32)(
(u64*)((u8*)Td+3))
+#define Td2 (
u32)(
(u64*)((u8*)Td+2))
+#define Td3 (
u32)(
(u64*)((u8*)Td+1))
static const u64 Te[256] = {
U64(0xa56363c6a56363c6), U64(0x847c7cf8847c7cf8),
static const u64 Te[256] = {
U64(0xa56363c6a56363c6), U64(0x847c7cf8847c7cf8),