From bede26dcff12cbb528a014bed3c2da983f04f8e4 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Sat, 13 Jan 2018 13:12:43 -0500 Subject: Fix return value of PK_Encryptor::maximum_input_size Fixes GH #1410 --- src/lib/pubkey/pk_ops.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/pubkey/pk_ops.cpp') diff --git a/src/lib/pubkey/pk_ops.cpp b/src/lib/pubkey/pk_ops.cpp index fb85645cb..025836878 100644 --- a/src/lib/pubkey/pk_ops.cpp +++ b/src/lib/pubkey/pk_ops.cpp @@ -20,7 +20,7 @@ PK_Ops::Encryption_with_EME::Encryption_with_EME(const std::string& eme) size_t PK_Ops::Encryption_with_EME::max_input_bits() const { - return m_eme->maximum_input_size(max_raw_input_bits()); + return 8 * m_eme->maximum_input_size(max_raw_input_bits()); } secure_vector PK_Ops::Encryption_with_EME::encrypt(const uint8_t msg[], size_t msg_len, -- cgit v1.2.3