diff options
Diffstat (limited to 'src/lib/pubkey/mce/mceliece_key.cpp')
-rw-r--r-- | src/lib/pubkey/mce/mceliece_key.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/pubkey/mce/mceliece_key.cpp b/src/lib/pubkey/mce/mceliece_key.cpp index 71e0ec4e8..7da5aefed 100644 --- a/src/lib/pubkey/mce/mceliece_key.cpp +++ b/src/lib/pubkey/mce/mceliece_key.cpp @@ -14,10 +14,10 @@ #include <botan/gf2m_small_m.h> #include <botan/mceliece.h> #include <botan/internal/code_based_key_gen.h> -#include <botan/alg_id.h> +#include <botan/code_based_util.h> #include <botan/der_enc.h> #include <botan/ber_dec.h> -#include <botan/oids.h> +#include <botan/workfactor.h> namespace Botan { @@ -74,6 +74,11 @@ McEliece_PublicKey::McEliece_PublicKey(const McEliece_PublicKey & other) : { } +size_t McEliece_PublicKey::estimated_strength() const + { + return mceliece_work_factor(m_t, m_code_length); + } + McEliece_PublicKey::McEliece_PublicKey(const std::vector<byte>& key_bits) { BER_Decoder dec(key_bits); |