Lines Matching refs:rs
88 static struct arc4_stream rs; variable
101 rs.s[n] = n; in arc4_init()
102 rs.i = 0; in arc4_init()
103 rs.j = 0; in arc4_init()
112 rs.i--; in arc4_addrandom()
114 rs.i = (rs.i + 1); in arc4_addrandom()
115 si = rs.s[rs.i]; in arc4_addrandom()
116 rs.j = (rs.j + si + dat[n % datlen]); in arc4_addrandom()
117 rs.s[rs.i] = rs.s[rs.j]; in arc4_addrandom()
118 rs.s[rs.j] = si; in arc4_addrandom()
120 rs.j = rs.i; in arc4_addrandom()
429 rs.i = (rs.i + 1); in arc4_getbyte()
430 si = rs.s[rs.i]; in arc4_getbyte()
431 rs.j = (rs.j + si); in arc4_getbyte()
432 sj = rs.s[rs.j]; in arc4_getbyte()
433 rs.s[rs.i] = sj; in arc4_getbyte()
434 rs.s[rs.j] = si; in arc4_getbyte()
435 return (rs.s[(si + sj) & 0xff]); in arc4_getbyte()