aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/mac/cmac
diff options
context:
space:
mode:
authorlloyd <[email protected]>2015-03-11 12:05:06 +0000
committerlloyd <[email protected]>2015-03-11 12:05:06 +0000
commit1bf1490726d859596ac95c78c9a7763b8d420b2d (patch)
tree91b6126ca7f9491e997b340ea8ce0c8f96f8671a /src/lib/mac/cmac
parent28e5dd404b5d4e3f5eec1a64a198c8f301636e23 (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/cmac')
-rw-r--r--src/lib/mac/cmac/cmac.cpp2
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;