diff options
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, |