aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-10-02 22:09:00 -0400
committerJack Lloyd <[email protected]>2017-10-02 22:45:20 -0400
commit9f2278ee6fdbbc35e732455e053f8e14b23da440 (patch)
tree4a8a8a583a190673de8ae2439d45f2177746d967 /src/lib
parent34868d4c4b91227db472aa294dfeb6d9075ec056 (diff)
Make EMSA1 data private
It was already final so leaving data as protected makes no sense...
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/pk_pad/emsa1/emsa1.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/pk_pad/emsa1/emsa1.h b/src/lib/pk_pad/emsa1/emsa1.h
index 98c040b2b..702db8f80 100644
--- a/src/lib/pk_pad/emsa1/emsa1.h
+++ b/src/lib/pk_pad/emsa1/emsa1.h
@@ -27,23 +27,21 @@ class BOTAN_PUBLIC_API(2,0) EMSA1 final : public EMSA
EMSA* clone() override;
- protected:
+ private:
size_t hash_output_length() const { return m_hash->output_length(); }
- std::unique_ptr<HashFunction> m_hash;
-
- private:
void update(const uint8_t[], size_t) override;
secure_vector<uint8_t> raw_data() override;
secure_vector<uint8_t> encoding_of(const secure_vector<uint8_t>& msg,
- size_t output_bits,
- RandomNumberGenerator& rng) override;
+ size_t output_bits,
+ RandomNumberGenerator& rng) override;
bool verify(const secure_vector<uint8_t>& coded,
const secure_vector<uint8_t>& raw,
size_t key_bits) override;
+ std::unique_ptr<HashFunction> m_hash;
};
}