Skip to content

Commit

Permalink
appease clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
reneme committed Aug 7, 2023
1 parent 7e16655 commit acb76a8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
20 changes: 10 additions & 10 deletions src/lib/pubkey/pubkey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ PK_Encryptor_EME::PK_Encryptor_EME(const Public_Key& key,

PK_Encryptor_EME::~PK_Encryptor_EME() = default;

PK_Encryptor_EME::PK_Encryptor_EME(PK_Encryptor_EME&&) = default;
PK_Encryptor_EME& PK_Encryptor_EME::operator=(PK_Encryptor_EME&&) = default;
PK_Encryptor_EME::PK_Encryptor_EME(PK_Encryptor_EME&&) noexcept = default;
PK_Encryptor_EME& PK_Encryptor_EME::operator=(PK_Encryptor_EME&&) noexcept = default;

size_t PK_Encryptor_EME::ciphertext_length(size_t ptext_len) const {
return m_op->ciphertext_length(ptext_len);
Expand All @@ -121,8 +121,8 @@ PK_Decryptor_EME::PK_Decryptor_EME(const Private_Key& key,

PK_Decryptor_EME::~PK_Decryptor_EME() = default;

PK_Decryptor_EME::PK_Decryptor_EME(PK_Decryptor_EME&&) = default;
PK_Decryptor_EME& PK_Decryptor_EME::operator=(PK_Decryptor_EME&&) = default;
PK_Decryptor_EME::PK_Decryptor_EME(PK_Decryptor_EME&&) noexcept = default;
PK_Decryptor_EME& PK_Decryptor_EME::operator=(PK_Decryptor_EME&&) noexcept = default;

size_t PK_Decryptor_EME::plaintext_length(size_t ctext_len) const {
return m_op->plaintext_length(ctext_len);
Expand All @@ -141,8 +141,8 @@ PK_KEM_Encryptor::PK_KEM_Encryptor(const Public_Key& key, std::string_view param

PK_KEM_Encryptor::~PK_KEM_Encryptor() = default;

PK_KEM_Encryptor::PK_KEM_Encryptor(PK_KEM_Encryptor&&) = default;
PK_KEM_Encryptor& PK_KEM_Encryptor::operator=(PK_KEM_Encryptor&&) = default;
PK_KEM_Encryptor::PK_KEM_Encryptor(PK_KEM_Encryptor&&) noexcept = default;
PK_KEM_Encryptor& PK_KEM_Encryptor::operator=(PK_KEM_Encryptor&&) noexcept = default;

size_t PK_KEM_Encryptor::shared_key_length(size_t desired_shared_key_len) const {
return m_op->shared_key_length(desired_shared_key_len);
Expand Down Expand Up @@ -183,8 +183,8 @@ PK_KEM_Decryptor::PK_KEM_Decryptor(const Private_Key& key,

PK_KEM_Decryptor::~PK_KEM_Decryptor() = default;

PK_KEM_Decryptor::PK_KEM_Decryptor(PK_KEM_Decryptor&&) = default;
PK_KEM_Decryptor& PK_KEM_Decryptor::operator=(PK_KEM_Decryptor&&) = default;
PK_KEM_Decryptor::PK_KEM_Decryptor(PK_KEM_Decryptor&&) noexcept = default;
PK_KEM_Decryptor& PK_KEM_Decryptor::operator=(PK_KEM_Decryptor&&) noexcept = default;

void PK_KEM_Decryptor::decrypt(std::span<uint8_t> out_shared_key,
std::span<const uint8_t> encap_key,
Expand All @@ -207,8 +207,8 @@ PK_Key_Agreement::PK_Key_Agreement(const Private_Key& key,

PK_Key_Agreement::~PK_Key_Agreement() = default;

PK_Key_Agreement::PK_Key_Agreement(PK_Key_Agreement&&) = default;
PK_Key_Agreement& PK_Key_Agreement::operator=(PK_Key_Agreement&&) = default;
PK_Key_Agreement::PK_Key_Agreement(PK_Key_Agreement&&) noexcept = default;
PK_Key_Agreement& PK_Key_Agreement::operator=(PK_Key_Agreement&&) noexcept = default;

size_t PK_Key_Agreement::agreed_value_size() const {
return m_op->agreed_value_size();
Expand Down
20 changes: 10 additions & 10 deletions src/lib/pubkey/pubkey.h
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,8 @@ class BOTAN_PUBLIC_API(2, 0) PK_Key_Agreement final {
PK_Key_Agreement(const PK_Key_Agreement&) = delete;
PK_Key_Agreement& operator=(const PK_Key_Agreement&) = delete;

PK_Key_Agreement(PK_Key_Agreement&&);
PK_Key_Agreement& operator=(PK_Key_Agreement&&);
PK_Key_Agreement(PK_Key_Agreement&&) noexcept;
PK_Key_Agreement& operator=(PK_Key_Agreement&&) noexcept;

/**
* Perform Key Agreement Operation
Expand Down Expand Up @@ -497,8 +497,8 @@ class BOTAN_PUBLIC_API(2, 0) PK_Encryptor_EME final : public PK_Encryptor {
PK_Encryptor_EME(const PK_Encryptor_EME&) = delete;
PK_Encryptor_EME& operator=(const PK_Encryptor_EME&) = delete;

PK_Encryptor_EME(PK_Encryptor_EME&&);
PK_Encryptor_EME& operator=(PK_Encryptor_EME&&);
PK_Encryptor_EME(PK_Encryptor_EME&&) noexcept;
PK_Encryptor_EME& operator=(PK_Encryptor_EME&&) noexcept;

/**
* Return an upper bound on the ciphertext length for a particular
Expand Down Expand Up @@ -536,8 +536,8 @@ class BOTAN_PUBLIC_API(2, 0) PK_Decryptor_EME final : public PK_Decryptor {
PK_Decryptor_EME(const PK_Decryptor_EME&) = delete;
PK_Decryptor_EME& operator=(const PK_Decryptor_EME&) = delete;

PK_Decryptor_EME(PK_Decryptor_EME&&);
PK_Decryptor_EME& operator=(PK_Decryptor_EME&&);
PK_Decryptor_EME(PK_Decryptor_EME&&) noexcept;
PK_Decryptor_EME& operator=(PK_Decryptor_EME&&) noexcept;

private:
secure_vector<uint8_t> do_decrypt(uint8_t& valid_mask, const uint8_t in[], size_t in_len) const override;
Expand Down Expand Up @@ -613,8 +613,8 @@ class BOTAN_PUBLIC_API(2, 0) PK_KEM_Encryptor final {
PK_KEM_Encryptor(const PK_KEM_Encryptor&) = delete;
PK_KEM_Encryptor& operator=(const PK_KEM_Encryptor&) = delete;

PK_KEM_Encryptor(PK_KEM_Encryptor&&);
PK_KEM_Encryptor& operator=(PK_KEM_Encryptor&&);
PK_KEM_Encryptor(PK_KEM_Encryptor&&) noexcept;
PK_KEM_Encryptor& operator=(PK_KEM_Encryptor&&) noexcept;

/**
* Return the length of the shared key returned by this KEM
Expand Down Expand Up @@ -744,8 +744,8 @@ class BOTAN_PUBLIC_API(2, 0) PK_KEM_Decryptor final {
PK_KEM_Decryptor(const PK_KEM_Decryptor&) = delete;
PK_KEM_Decryptor& operator=(const PK_KEM_Decryptor&) = delete;

PK_KEM_Decryptor(PK_KEM_Decryptor&&);
PK_KEM_Decryptor& operator=(PK_KEM_Decryptor&&);
PK_KEM_Decryptor(PK_KEM_Decryptor&&) noexcept;
PK_KEM_Decryptor& operator=(PK_KEM_Decryptor&&) noexcept;

/**
* Return the length of the shared key returned by this KEM
Expand Down

0 comments on commit acb76a8

Please sign in to comment.