aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey/dsa/dsa_op.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-02-24 13:55:53 +0000
committerlloyd <[email protected]>2010-02-24 13:55:53 +0000
commit3e95540b28f3d828c4578381c318545f6ad49589 (patch)
tree31daed2385f63d6d8385abbac525769e9f83aee1 /src/pubkey/dsa/dsa_op.cpp
parent01a6b5d010f459e8eeb0ef2ce97ecaf885ae1809 (diff)
Drop async.h and switch to using std::async which was added to GCC before
the 4.5 release.
Diffstat (limited to 'src/pubkey/dsa/dsa_op.cpp')
-rw-r--r--src/pubkey/dsa/dsa_op.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pubkey/dsa/dsa_op.cpp b/src/pubkey/dsa/dsa_op.cpp
index 5eb9e92be..e83fd83b7 100644
--- a/src/pubkey/dsa/dsa_op.cpp
+++ b/src/pubkey/dsa/dsa_op.cpp
@@ -6,7 +6,7 @@
*/
#include <botan/dsa_op.h>
-#include <botan/internal/async.h>
+#include <future>
namespace Botan {
@@ -42,7 +42,7 @@ bool Default_DSA_Op::verify(const byte msg[], u32bit msg_len,
s = inverse_mod(s, q);
- auto future_s_i = std_async(
+ auto future_s_i = std::async(std::launch::async,
[&]() { return powermod_g_p(mod_q.multiply(s, i)); });
BigInt s_r = powermod_y_p(mod_q.multiply(s, r));
@@ -62,7 +62,8 @@ SecureVector<byte> Default_DSA_Op::sign(const byte in[], u32bit length,
if(x == 0)
throw Internal_Error("Default_DSA_Op::sign: No private key");
- auto future_r = std_async([&]() { return mod_q.reduce(powermod_g_p(k)); });
+ auto future_r = std::async(std::launch::async,
+ [&]() { return mod_q.reduce(powermod_g_p(k)); });
const BigInt& q = group.get_q();
BigInt i(in, length);