Mercurial > dropbear
diff src/ciphers/twofish/twofish.c @ 195:19e5d79b7190 libtomcrypt
Cleanup of import of LTC 1.02, still problematic for Dropbear
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 09 May 2005 09:33:00 +0000 |
parents | 9cc34777b479 |
children | 4768b55c5240 |
line wrap: on
line diff
--- a/src/ciphers/twofish/twofish.c Sun May 08 06:36:47 2005 +0000 +++ b/src/ciphers/twofish/twofish.c Mon May 09 09:33:00 2005 +0000 @@ -578,7 +578,7 @@ b = RORc(b ^ (t2 + t1 + k[3]), 1); t2 = g1_func(b, skey); - t1 = g_func(a, key) + t2; + t1 = g_func(a, skey) + t2; c = ROLc(c, 1) ^ (t1 + k[0]); d = RORc(d ^ (t2 + t1 + k[1]), 1); k -= 4;