diff options
author | lloyd <[email protected]> | 2014-11-29 14:16:26 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2014-11-29 14:16:26 +0000 |
commit | e89b6a365e56283a945aeda8ed2b427937fe5d91 (patch) | |
tree | e01cd34049831debff697de3f11fb54d175a8b81 /src/lib/pubkey/ecc_key/ecc_key.cpp | |
parent | 71ff50357af5183995c9af59f1816f065ce9a857 (diff) |
Move all PK workfactor esstimators to workfactors.*
Diffstat (limited to 'src/lib/pubkey/ecc_key/ecc_key.cpp')
-rw-r--r-- | src/lib/pubkey/ecc_key/ecc_key.cpp | 3 |
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, |