diff --git a/twenty4.c b/twenty4.c index c0c3536..2a9285c 100644 --- a/twenty4.c +++ b/twenty4.c @@ -176,7 +176,7 @@ void keyhash(char *pw, byte *hash) { /* diffuse and confuse hash */ for(round=0; round1; i--) + key[i-1] = kbox[key[i] ^ feedback]; + + key[16] = kbox[f ^ feedback]; } /* actual stream cipher: