diff options
-rw-r--r-- | idea.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -137,11 +137,9 @@ DoIDEA(void) ** # of loops and increasing the loop count until we ** get a number of loops that we can use. */ - for (; loops < LOOP_MAX; loops += 10) { - if (DoIDEAIteration(plain1, crypt1, plain2, loops, Z, DK) > MINIMUM_TICKS) { - break; - } - } + do { + loops += 10; + } while((DoIDEAIteration(plain1, crypt1, plain2, loops, Z, DK) <= MINIMUM_TICKS) && (loops < LOOP_MAX)); } /* |