aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/block
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/block')
-rw-r--r--src/lib/block/idea/idea.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/block/idea/idea.cpp b/src/lib/block/idea/idea.cpp
index de153e2c5..d6380368d 100644
--- a/src/lib/block/idea/idea.cpp
+++ b/src/lib/block/idea/idea.cpp
@@ -197,7 +197,7 @@ void IDEA::key_schedule(const uint8_t key[], size_t)
for(size_t off = 0; off != 48; off += 8)
{
for(size_t i = 0; i != 8; ++i)
- m_EK[off+i] = K[i/4] >> (48-16*(i % 4));
+ m_EK[off+i] = static_cast<uint16_t>(K[i/4] >> (48-16*(i % 4)));
const uint64_t Kx = (K[0] >> 39);
const uint64_t Ky = (K[1] >> 39);
@@ -207,7 +207,7 @@ void IDEA::key_schedule(const uint8_t key[], size_t)
}
for(size_t i = 0; i != 4; ++i)
- m_EK[48+i] = K[i/4] >> (48-16*(i % 4));
+ m_EK[48+i] = static_cast<uint16_t>(K[i/4] >> (48-16*(i % 4)));
m_DK[0] = mul_inv(m_EK[48]);
m_DK[1] = -m_EK[49];