aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/dl_algo/dl_algo.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-02-23 12:48:59 -0500
committerJack Lloyd <[email protected]>2018-02-23 12:48:59 -0500
commit517b0241f878b0603ffc02eb5829f0aa7403f38d (patch)
tree5d68876245c8257fd11f3b1867facd549bc153f8 /src/lib/pubkey/dl_algo/dl_algo.cpp
parente679629ef38aa608fffc22b91d3a1d9de308a8c9 (diff)
Add DL_Group::estimated_strength
Diffstat (limited to 'src/lib/pubkey/dl_algo/dl_algo.cpp')
-rw-r--r--src/lib/pubkey/dl_algo/dl_algo.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/pubkey/dl_algo/dl_algo.cpp b/src/lib/pubkey/dl_algo/dl_algo.cpp
index d31f927d7..f9d6178b0 100644
--- a/src/lib/pubkey/dl_algo/dl_algo.cpp
+++ b/src/lib/pubkey/dl_algo/dl_algo.cpp
@@ -7,7 +7,6 @@
#include <botan/dl_algo.h>
#include <botan/numthry.h>
-#include <botan/workfactor.h>
#include <botan/der_enc.h>
#include <botan/ber_dec.h>
@@ -15,12 +14,12 @@ namespace Botan {
size_t DL_Scheme_PublicKey::key_length() const
{
- return m_group.get_p().bits();
+ return m_group.p_bits();
}
size_t DL_Scheme_PublicKey::estimated_strength() const
{
- return dl_work_factor(key_length());
+ return m_group.estimated_strength();
}
AlgorithmIdentifier DL_Scheme_PublicKey::algorithm_identifier() const