aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/pk_ops.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-01-13 13:12:43 -0500
committerJack Lloyd <[email protected]>2018-01-13 13:12:43 -0500
commitbede26dcff12cbb528a014bed3c2da983f04f8e4 (patch)
tree1d60477d5a955266d94cd87c1aa555e66852a5d4 /src/lib/pubkey/pk_ops.cpp
parent6b29180686c9897a87b689261ea3a86f55d809c9 (diff)
Fix return value of PK_Encryptor::maximum_input_size
Fixes GH #1410
Diffstat (limited to 'src/lib/pubkey/pk_ops.cpp')
-rw-r--r--src/lib/pubkey/pk_ops.cpp2
1 files changed, 1 insertions, 1 deletions
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<uint8_t> PK_Ops::Encryption_with_EME::encrypt(const uint8_t msg[], size_t msg_len,