diff options
author | Jack Lloyd <[email protected]> | 2020-11-11 08:28:48 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2020-11-11 08:28:48 -0500 |
commit | f05aea8dbf390ba5aeb66c1c5c79c9731563d0c5 (patch) | |
tree | 4a66d7f86127c41d09a2132a25dc71d796eb2374 /src/lib/pubkey/mce | |
parent | 5f72888fcf56d6719d34abeb84ce9501b4f5a9b0 (diff) |
Rule of 5
Diffstat (limited to 'src/lib/pubkey/mce')
-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, |