diff options
author | Simon Warta <[email protected]> | 2015-08-13 21:53:37 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2015-08-14 19:01:07 +0200 |
commit | b4c59752c1ffd6e7217573e9a290276d92bd6235 (patch) | |
tree | 4e5f99989cfbc3999d7f84607804f0a82e72804f /src/lib/math/mp/mp_monty.cpp | |
parent | b9c0077022400abc38d33ca3dfcfe32b9cf503e3 (diff) |
Remove 'extern "C"' from src/lib/math/mp
C functions must not throw but Botan::bigint_divop throws (MSVC: warning
C4297: 'Botan::bigint_divop' : function assumed not to throw an
exception but does)
* Move bigint_mul -> Botan::bigint_sqr
* Move bigint_sqr -> Botan::bigint_sqr
* Variable in unnamed namespace supersedes "static" keyword
Diffstat (limited to 'src/lib/math/mp/mp_monty.cpp')
-rw-r--r-- | src/lib/math/mp/mp_monty.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/lib/math/mp/mp_monty.cpp b/src/lib/math/mp/mp_monty.cpp index ffceaab9b..820f41e6c 100644 --- a/src/lib/math/mp/mp_monty.cpp +++ b/src/lib/math/mp/mp_monty.cpp @@ -13,8 +13,6 @@ namespace Botan { -extern "C" { - /* * Montgomery Reduction Algorithm */ @@ -112,5 +110,3 @@ void bigint_monty_sqr(word z[], size_t z_size, } } - -} |