summaryrefslogtreecommitdiffstats
path: root/crypt
diff options
context:
space:
mode:
Diffstat (limited to 'crypt')
-rw-r--r--crypt/hybridcrypt.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypt/hybridcrypt.cpp b/crypt/hybridcrypt.cpp
index 4d94ef2..ea69d61 100644
--- a/crypt/hybridcrypt.cpp
+++ b/crypt/hybridcrypt.cpp
@@ -570,7 +570,8 @@ QByteArray HybridCrypt::decryptAesData(EVP_PKEY *pkey, QByteArray data)
{
// Wenn der Fehler von OAEP kommt, ignoriere fürs erste
if (ERR_GET_LIB(ERR_peek_error()) == ERR_LIB_RSA &&
- ERR_GET_REASON(ERR_peek_error()) == RSA_R_OAEP_DECODING_ERROR)
+ (ERR_GET_REASON(ERR_peek_error()) == RSA_R_OAEP_DECODING_ERROR ||
+ ERR_GET_REASON(ERR_peek_error()) == RSA_R_PADDING_CHECK_FAILED))
{
// Lösche Error aus der Schlange
ERR_get_error();