aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/misc/rfc3394/rfc3394.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-08-31 08:23:30 -0400
committerJack Lloyd <[email protected]>2017-08-31 08:23:30 -0400
commit7fecb1254232311d5f2ca62f9cda1e12a4b2558c (patch)
tree2e2cd8ef8ca016310d4cc9aa6bee7abc96c39e2f /src/lib/misc/rfc3394/rfc3394.cpp
parentdf4287c3c763de14b262ed39d54b3de552adbefb (diff)
More MSVC warnings fixes
Diffstat (limited to 'src/lib/misc/rfc3394/rfc3394.cpp')
-rw-r--r--src/lib/misc/rfc3394/rfc3394.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/misc/rfc3394/rfc3394.cpp b/src/lib/misc/rfc3394/rfc3394.cpp
index 2ec49ac65..3bb792723 100644
--- a/src/lib/misc/rfc3394/rfc3394.cpp
+++ b/src/lib/misc/rfc3394/rfc3394.cpp
@@ -39,7 +39,7 @@ secure_vector<uint8_t> rfc3394_keywrap(const secure_vector<uint8_t>& key,
{
for(size_t i = 1; i <= n; ++i)
{
- const uint32_t t = (n * j) + i;
+ const uint32_t t = static_cast<uint32_t>((n * j) + i);
copy_mem(&A[8], &R[8*i], 8);
@@ -84,7 +84,7 @@ secure_vector<uint8_t> rfc3394_keyunwrap(const secure_vector<uint8_t>& key,
{
for(size_t i = n; i != 0; --i)
{
- const uint32_t t = (5 - j) * n + i;
+ const uint32_t t = static_cast<uint32_t>((5 - j) * n + i);
uint8_t t_buf[4] = { 0 };
store_be(t, t_buf);