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

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Skycoder42 committed Aug 2, 2017
1 parent b83fa3b commit 3b95be9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void TinyAesEncryptorTest::testEncryptionCycle()
QVERIFY_EXCEPTION_THROWN(encryptor->decrypt(key, plain, "id"), DecryptionFailedException);

//test invalid key
encryptor->setKey(QByteArray("x").repeated(16));
encryptor->setKey(QByteArray("x").repeated(32));
QVERIFY_EXCEPTION_THROWN(encryptor->decrypt(key, cipher, "id"), DecryptionFailedException);
} catch(QException &e) {
QFAIL(e.what());
Expand All @@ -74,7 +74,7 @@ void TinyAesEncryptorTest::testEncryptionCycle()
void TinyAesEncryptorTest::testKeyChange()
{
try {
auto newKey = QByteArray("y").repeated(16);//128 bit
auto newKey = QByteArray("y").repeated(32);//256 bit
encryptor->setKey(newKey);
QCOMPARE(encryptor->key(), newKey);

Expand Down

0 comments on commit 3b95be9

Please sign in to comment.