aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey
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/pubkey
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/pubkey')
-rw-r--r--src/lib/pubkey/curve25519/donna.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pubkey/curve25519/donna.cpp b/src/lib/pubkey/curve25519/donna.cpp
index 83d68ff6b..4fab78cb8 100644
--- a/src/lib/pubkey/curve25519/donna.cpp
+++ b/src/lib/pubkey/curve25519/donna.cpp
@@ -322,7 +322,7 @@ fmonty(limb *x2, limb *z2, /* output 2Q */
static void
swap_conditional(limb a[5], limb b[5], limb iswap) {
unsigned i;
- const limb swap = -iswap;
+ const limb swap = static_cast<limb>(-iswap);
for (i = 0; i < 5; ++i) {
const limb x = swap & (a[i] ^ b[i]);