diff options
Diffstat (limited to 'tests/TestSymmetricCipher.cpp')
-rw-r--r-- | tests/TestSymmetricCipher.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/TestSymmetricCipher.cpp b/tests/TestSymmetricCipher.cpp index 752fc09df..173f328ee 100644 --- a/tests/TestSymmetricCipher.cpp +++ b/tests/TestSymmetricCipher.cpp @@ -289,14 +289,16 @@ void TestSymmetricCipher::testTwofish256CbcEncryption() QCOMPARE(cipher.blockSize(), 16); for (int j = 0; j < 5000; ++j) { ctCur = cipher.process(ptNext, &ok); - if (!ok) + if (!ok) { break; + } ptNext = ctPrev; ctPrev = ctCur; ctCur = cipher.process(ptNext, &ok); - if (!ok) + if (!ok) { break; + } ptNext = ctPrev; ctPrev = ctCur; } @@ -342,13 +344,15 @@ void TestSymmetricCipher::testTwofish256CbcDecryption() QCOMPARE(cipher.blockSize(), 16); for (int j = 0; j < 5000; ++j) { ptCur = cipher.process(ctNext, &ok); - if (!ok) + if (!ok) { break; + } ctNext = ptCur; ptCur = cipher.process(ctNext, &ok); - if (!ok) + if (!ok) { break; + } ctNext = ptCur; } |