mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Break instead of returning
This commit is contained in:
@@ -169,13 +169,13 @@ void TestSymmetricCipher::testTwofish256CbcEncryption()
|
|||||||
for (int j = 0; j < 5000; ++j) {
|
for (int j = 0; j < 5000; ++j) {
|
||||||
ctCur = cipher.process(ptNext, &ok);
|
ctCur = cipher.process(ptNext, &ok);
|
||||||
if (!ok)
|
if (!ok)
|
||||||
return;
|
break;
|
||||||
ptNext = ctPrev;
|
ptNext = ctPrev;
|
||||||
ctPrev = ctCur;
|
ctPrev = ctCur;
|
||||||
|
|
||||||
ctCur = cipher.process(ptNext, &ok);
|
ctCur = cipher.process(ptNext, &ok);
|
||||||
if (!ok)
|
if (!ok)
|
||||||
return;
|
break;
|
||||||
ptNext = ctPrev;
|
ptNext = ctPrev;
|
||||||
ctPrev = ctCur;
|
ctPrev = ctCur;
|
||||||
}
|
}
|
||||||
@@ -230,12 +230,12 @@ void TestSymmetricCipher::testTwofish256CbcDecryption()
|
|||||||
for (int j = 0; j < 5000; ++j) {
|
for (int j = 0; j < 5000; ++j) {
|
||||||
ptCur = cipher.process(ctNext, &ok);
|
ptCur = cipher.process(ctNext, &ok);
|
||||||
if (!ok)
|
if (!ok)
|
||||||
return;
|
break;
|
||||||
ctNext = ptCur;
|
ctNext = ptCur;
|
||||||
|
|
||||||
ptCur = cipher.process(ctNext, &ok);
|
ptCur = cipher.process(ctNext, &ok);
|
||||||
if (!ok)
|
if (!ok)
|
||||||
return;
|
break;
|
||||||
ctNext = ptCur;
|
ctNext = ptCur;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user