aboutsummaryrefslogtreecommitdiff
path: root/autotests
diff options
context:
space:
mode:
authorTobias Fella <9750016+TobiasFella@users.noreply.github.com>2022-05-20 20:33:12 +0200
committerGitHub <noreply@github.com>2022-05-20 20:33:12 +0200
commit59f2b60835752fc87e75f456145d21cc5f77a433 (patch)
tree235b45618ca593818616c4955c352a4585302e64 /autotests
parent44f34c60fe1f1dde859655bbda86221b6cec4811 (diff)
downloadlibquotient-59f2b60835752fc87e75f456145d21cc5f77a433.tar.gz
libquotient-59f2b60835752fc87e75f456145d21cc5f77a433.zip
Apply suggestions from code review
Co-authored-by: Alexey Rusakov <Kitsune-Ral@users.sf.net>
Diffstat (limited to 'autotests')
-rw-r--r--autotests/testfilecrypto.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/autotests/testfilecrypto.cpp b/autotests/testfilecrypto.cpp
index 5d549b89..f9212376 100644
--- a/autotests/testfilecrypto.cpp
+++ b/autotests/testfilecrypto.cpp
@@ -12,6 +12,7 @@ void TestFileCrypto::encryptDecryptData()
QByteArray data = "ABCDEF";
auto [file, cipherText] = EncryptedFile::encryptFile(data);
auto decrypted = file.decryptFile(cipherText);
+ // AES CTR produces ciphertext of the same size as the original
QCOMPARE(cipherText.size(), data.size());
QCOMPARE(decrypted.size(), data.size());
QCOMPARE(decrypted, data);