diff options
-rw-r--r-- | src/keypair.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/keypair.cpp b/src/keypair.cpp index 11ddbd811..eb613b971 100644 --- a/src/keypair.cpp +++ b/src/keypair.cpp @@ -17,6 +17,9 @@ namespace KeyPair { *************************************************/ void check_key(PK_Encryptor* encryptor, PK_Decryptor* decryptor) { + if(encryptor->maximum_input_size() == 0) + return; + std::auto_ptr<PK_Encryptor> enc(encryptor); std::auto_ptr<PK_Decryptor> dec(decryptor); |