From: Mark Wooding Date: Tue, 4 Jul 2017 16:47:54 +0000 (+0100) Subject: symm/twofish.c: Break a line to make the code clearer. X-Git-Tag: 2.4.2~50 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb/commitdiff_plain/12cc2b760b2bbc3e8fa26c12303e2ea36f3b89da symm/twofish.c: Break a line to make the code clearer. In retrospect, squashing all of that onto one line was an error. Thanks to GCC 6 for pointing this out. --- diff --git a/symm/twofish.c b/symm/twofish.c index 05e8fc59..02b43d03 100644 --- a/symm/twofish.c +++ b/symm/twofish.c @@ -307,7 +307,8 @@ void twofish_fkinit(twofish_fk *fk, const void *buf, size_t sz) kk = buf; sz /= 4; for (i = 0; i < sz; i++) { fk->t0[i] = LOAD32_L(kk); kk += 4; } - for (i = 0; i < 4; i++) pt[i] = 0; twofish_eblk(&k, pt, ct); + for (i = 0; i < 4; i++) pt[i] = 0; + twofish_eblk(&k, pt, ct); for (i = 0; i < 4; i++) STORE32_L(fk->t1 + i * 4, ct[i]); pt[0] = 1; twofish_eblk(&k, pt, ct); for (i = 0; i < 4; i++) STORE32_L(fk->t1 + 4 + i * 4, ct[i]);