X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/e5b61a8dec3586f96d25bd3ef454176526ff0f69..HEAD:/symm/twofish.c 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]);