diff options
author | lloyd <[email protected]> | 2015-03-11 12:05:06 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2015-03-11 12:05:06 +0000 |
commit | 1bf1490726d859596ac95c78c9a7763b8d420b2d (patch) | |
tree | 91b6126ca7f9491e997b340ea8ce0c8f96f8671a /src/lib/mac | |
parent | 28e5dd404b5d4e3f5eec1a64a198c8f301636e23 (diff) |
Add BOTAN_DLL back to LibraryInitializer and move some of the implementation to
a source file. Without BOTAN_DLL the LibraryInitializer was removed entirely
from the list of symbols which is not desired.
Add some casts to avoid scary sounding but (upon review) harmless warnings from MSVC
Diffstat (limited to 'src/lib/mac')
-rw-r--r-- | src/lib/mac/cmac/cmac.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/mac/cmac/cmac.cpp b/src/lib/mac/cmac/cmac.cpp index 0b867af8f..e56aa145b 100644 --- a/src/lib/mac/cmac/cmac.cpp +++ b/src/lib/mac/cmac/cmac.cpp @@ -27,7 +27,7 @@ BOTAN_REGISTER_NAMED_T(MessageAuthenticationCode, "CMAC", CMAC, CMAC::make); */ secure_vector<byte> CMAC::poly_double(const secure_vector<byte>& in) { - const bool top_carry = (in[0] & 0x80); + const bool top_carry = static_cast<bool>(in[0] & 0x80); secure_vector<byte> out = in; |