Skip to content
This repository was archived by the owner on Mar 4, 2023. It is now read-only.

Commit 3b95be9

Browse files
committed
fix test
1 parent b83fa3b commit 3b95be9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/auto/datasync/TinyAesEncryptorTest/tst_tinyaesencryptor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void TinyAesEncryptorTest::testEncryptionCycle()
6464
QVERIFY_EXCEPTION_THROWN(encryptor->decrypt(key, plain, "id"), DecryptionFailedException);
6565

6666
//test invalid key
67-
encryptor->setKey(QByteArray("x").repeated(16));
67+
encryptor->setKey(QByteArray("x").repeated(32));
6868
QVERIFY_EXCEPTION_THROWN(encryptor->decrypt(key, cipher, "id"), DecryptionFailedException);
6969
} catch(QException &e) {
7070
QFAIL(e.what());
@@ -74,7 +74,7 @@ void TinyAesEncryptorTest::testEncryptionCycle()
7474
void TinyAesEncryptorTest::testKeyChange()
7575
{
7676
try {
77-
auto newKey = QByteArray("y").repeated(16);//128 bit
77+
auto newKey = QByteArray("y").repeated(32);//256 bit
7878
encryptor->setKey(newKey);
7979
QCOMPARE(encryptor->key(), newKey);
8080

0 commit comments

Comments
 (0)