aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/elgamal
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-02-19 16:07:04 -0500
committerJack Lloyd <[email protected]>2018-02-19 16:07:04 -0500
commit8a6a6091838dd76edaa29137e26340a760a895c9 (patch)
tree1abc5e5e0ad866b01ac575664d3a72c16f243f7e /src/lib/pubkey/elgamal
parentee036d3bb011fe7a45bec3fca6ef405b2340c5d7 (diff)
Remove PK_Ops::Decryption_with_EME::max_raw_input_bits
Unused and not exposed to higher levels. RSA and ElGamal both check their inputs vs the system parameters (n, p) after decoding.
Diffstat (limited to 'src/lib/pubkey/elgamal')
-rw-r--r--src/lib/pubkey/elgamal/elgamal.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/pubkey/elgamal/elgamal.cpp b/src/lib/pubkey/elgamal/elgamal.cpp
index 3a5d8b81e..e03fd0bb6 100644
--- a/src/lib/pubkey/elgamal/elgamal.cpp
+++ b/src/lib/pubkey/elgamal/elgamal.cpp
@@ -117,8 +117,6 @@ class ElGamal_Decryption_Operation final : public PK_Ops::Decryption_with_EME
{
public:
- size_t max_raw_input_bits() const override { return m_group.p_bits() - 1; }
-
ElGamal_Decryption_Operation(const ElGamal_PrivateKey& key,
const std::string& eme,
RandomNumberGenerator& rng);