diff options
-rw-r--r-- | src/lib/pubkey/mce/mceliece.h | 5 | ||||
-rw-r--r-- | src/lib/pubkey/mce/mceliece_key.cpp | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/pubkey/mce/mceliece.h b/src/lib/pubkey/mce/mceliece.h index 0d2bfebe1..255898b63 100644 --- a/src/lib/pubkey/mce/mceliece.h +++ b/src/lib/pubkey/mce/mceliece.h @@ -98,6 +98,11 @@ class BOTAN_PUBLIC_API(2,0) McEliece_PrivateKey final : public virtual McEliece_ ~McEliece_PrivateKey(); + McEliece_PrivateKey(const McEliece_PrivateKey&); + McEliece_PrivateKey(McEliece_PrivateKey&&); + McEliece_PrivateKey& operator=(const McEliece_PrivateKey&); + McEliece_PrivateKey& operator=(McEliece_PrivateKey&&); + bool check_key(RandomNumberGenerator& rng, bool strong) const override; polyn_gf2m const& get_goppa_polyn() const; diff --git a/src/lib/pubkey/mce/mceliece_key.cpp b/src/lib/pubkey/mce/mceliece_key.cpp index ceb99be06..9db90112f 100644 --- a/src/lib/pubkey/mce/mceliece_key.cpp +++ b/src/lib/pubkey/mce/mceliece_key.cpp @@ -23,6 +23,11 @@ namespace Botan { +McEliece_PrivateKey::McEliece_PrivateKey(const McEliece_PrivateKey&) = default; +McEliece_PrivateKey::McEliece_PrivateKey(McEliece_PrivateKey&&) = default; +McEliece_PrivateKey& McEliece_PrivateKey::operator=(const McEliece_PrivateKey&) = default; +McEliece_PrivateKey& McEliece_PrivateKey::operator=(McEliece_PrivateKey&&) = default; + McEliece_PrivateKey::McEliece_PrivateKey(polyn_gf2m const& goppa_polyn, std::vector<uint32_t> const& parity_check_matrix_coeffs, std::vector<polyn_gf2m> const& square_root_matrix, |