aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
};
}