mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-14 08:50:08 -05:00
Break instead of returning
This commit is contained in:
parent
75dc21c66d
commit
4dab30ce6f
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user