aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/ecc_key
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-11-29 14:16:26 +0000
committerlloyd <[email protected]>2014-11-29 14:16:26 +0000
commite89b6a365e56283a945aeda8ed2b427937fe5d91 (patch)
treee01cd34049831debff697de3f11fb54d175a8b81 /src/lib/pubkey/ecc_key
parent71ff50357af5183995c9af59f1816f065ce9a857 (diff)
Move all PK workfactor esstimators to workfactors.*
Diffstat (limited to 'src/lib/pubkey/ecc_key')
-rw-r--r--src/lib/pubkey/ecc_key/ecc_key.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/pubkey/ecc_key/ecc_key.cpp b/src/lib/pubkey/ecc_key/ecc_key.cpp
index c9d4d62fe..7f82af4f5 100644
--- a/src/lib/pubkey/ecc_key/ecc_key.cpp
+++ b/src/lib/pubkey/ecc_key/ecc_key.cpp
@@ -14,12 +14,13 @@
#include <botan/ber_dec.h>
#include <botan/secmem.h>
#include <botan/point_gfp.h>
+#include <botan/workfactor.h>
namespace Botan {
size_t EC_PublicKey::estimated_strength() const
{
- return domain().get_curve().get_p().bits() / 2;
+ return ecp_work_factor(domain().get_curve().get_p().bits());
}
EC_PublicKey::EC_PublicKey(const EC_Group& dom_par,