aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/block
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-30 12:17:39 -0400
committerJack Lloyd <[email protected]>2017-09-30 12:17:39 -0400
commit62eb9857a46ddc508798176e3f77830ff0034e1b (patch)
tree43388f1a63236f82de13d9d308ac8fda79d201c5 /src/lib/block
parentf6dc3db8bb7e31569ed1a6042771e3f529aefab8 (diff)
Address some MSVC warnings
Diffstat (limited to 'src/lib/block')
-rw-r--r--src/lib/block/misty1/misty1.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/block/misty1/misty1.cpp b/src/lib/block/misty1/misty1.cpp
index 3e2677fce..d6ac5f9a9 100644
--- a/src/lib/block/misty1/misty1.cpp
+++ b/src/lib/block/misty1/misty1.cpp
@@ -119,7 +119,7 @@ void MISTY1::encrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const
B3 ^= B2 & RK[2];
B2 ^= B3 | RK[3];
- uint32_t T0, T1;
+ uint16_t T0, T1;
T0 = FI(B0 ^ RK[ 4], RK[ 5], RK[ 6]) ^ B1;
T1 = FI(B1 ^ RK[ 7], RK[ 8], RK[ 9]) ^ T0;
@@ -169,7 +169,7 @@ void MISTY1::decrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const
B0 ^= B1 | RK[2];
B1 ^= B0 & RK[3];
- uint32_t T0, T1;
+ uint16_t T0, T1;
T0 = FI(B2 ^ RK[ 4], RK[ 5], RK[ 6]) ^ B3;
T1 = FI(B3 ^ RK[ 7], RK[ 8], RK[ 9]) ^ T0;