diff options
-rw-r--r-- | tests/TestSymmetricCipher.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/TestSymmetricCipher.cpp b/tests/TestSymmetricCipher.cpp index 737778479..3edf735b8 100644 --- a/tests/TestSymmetricCipher.cpp +++ b/tests/TestSymmetricCipher.cpp @@ -169,13 +169,13 @@ void TestSymmetricCipher::testTwofish256CbcEncryption() for (int j = 0; j < 5000; ++j) { ctCur = cipher.process(ptNext, &ok); if (!ok) - return; + break; ptNext = ctPrev; ctPrev = ctCur; ctCur = cipher.process(ptNext, &ok); if (!ok) - return; + break; ptNext = ctPrev; ctPrev = ctCur; } @@ -230,12 +230,12 @@ void TestSymmetricCipher::testTwofish256CbcDecryption() for (int j = 0; j < 5000; ++j) { ptCur = cipher.process(ctNext, &ok); if (!ok) - return; + break; ctNext = ptCur; ptCur = cipher.process(ctNext, &ok); if (!ok) - return; + break; ctNext = ptCur; } |