From 84b6487de96cc49c1e8abee1642ec592978f327f Mon Sep 17 00:00:00 2001 From: APTX Date: Thu, 24 May 2012 01:23:36 +0200 Subject: [PATCH] Padding is up to and including 16. --- client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.cpp b/client.cpp index b5f2cf8..aecddc3 100644 --- a/client.cpp +++ b/client.cpp @@ -990,7 +990,7 @@ qDebug() << "Ciphertext not a multiple of cipher block size!!"; // Remove padding (and only it) char pad = ret[ret.size() - 1]; - if (pad > 0 && pad < 16) + if (pad > 0 && pad <= 16) { QByteArray padding = ret.right(pad); bool ok = true; -- 2.52.0