Return arc4_i = arc4_j = 0; line from previous backing out since
just found it in OpenBSD, see their sys/crypto/arc4.c, function rc4_keysetup, line ctx->x = ctx->y = 0; Obtained from: OpenBSD
This commit is contained in:
parent
a08f0b20be
commit
b834665cd5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180825
@ -69,6 +69,7 @@ arc4_randomstir (void)
|
||||
arc4_j = (arc4_j + arc4_sbox[n] + key[n]) % 256;
|
||||
arc4_swap(&arc4_sbox[n], &arc4_sbox[arc4_j]);
|
||||
}
|
||||
arc4_i = arc4_j = 0;
|
||||
|
||||
/* Reset for next reseed cycle. */
|
||||
arc4_t_reseed = tv_now.tv_sec + ARC4_RESEED_SECONDS;
|
||||
|
Loading…
Reference in New Issue
Block a user