diff options
author | Jack Lloyd <[email protected]> | 2017-09-30 12:17:39 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-09-30 12:17:39 -0400 |
commit | 62eb9857a46ddc508798176e3f77830ff0034e1b (patch) | |
tree | 43388f1a63236f82de13d9d308ac8fda79d201c5 /src/lib/modes/aead/ocb | |
parent | f6dc3db8bb7e31569ed1a6042771e3f529aefab8 (diff) |
Address some MSVC warnings
Diffstat (limited to 'src/lib/modes/aead/ocb')
-rw-r--r-- | src/lib/modes/aead/ocb/ocb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/modes/aead/ocb/ocb.cpp b/src/lib/modes/aead/ocb/ocb.cpp index e885eb5bc..9a7448161 100644 --- a/src/lib/modes/aead/ocb/ocb.cpp +++ b/src/lib/modes/aead/ocb/ocb.cpp @@ -211,7 +211,7 @@ OCB_Mode::update_nonce(const uint8_t nonce[], size_t nonce_len) secure_vector<uint8_t> nonce_buf(BS); copy_mem(&nonce_buf[BS - nonce_len], nonce, nonce_len); - nonce_buf[0] = ((tag_size()*8) % (BS*8)) << (BS <= 16 ? 1 : 0); + nonce_buf[0] = static_cast<uint8_t>(((tag_size()*8) % (BS*8)) << (BS <= 16 ? 1 : 0)); nonce_buf[BS - nonce_len - 1] ^= 1; |