diff options
author | Janek Bevendorff <janek@jbev.net> | 2017-01-15 21:36:00 +0300 |
---|---|---|
committer | Janek Bevendorff <janek@jbev.net> | 2017-01-28 19:53:19 +0300 |
commit | 4dab30ce6fd494e6b5b61cf6942ae440b364ee2b (patch) | |
tree | cbfab084ed68a20e0c51645794b985a6768d8d3c /tests/TestSymmetricCipher.cpp | |
parent | 75dc21c66d496bdc1e167a2a5ceb334dbab09fc6 (diff) |
Break instead of returning
Diffstat (limited to 'tests/TestSymmetricCipher.cpp')
-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; } |