def rc4.xs

bend-osdev-legacy-ciphers@0.1.0.0 · rc4.bend:117

import bend-osdev-legacy-ciphers@0.1.0.0/rc4.bend as Rc4
import Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B

117def rc4.xs(xs: List<&2, U32>, st: LcRc4State) -> List<&2, U32>:
118  match xs:
119    case Nil{}:
120      Nil{}
121    case Con{x, t}:
122      +n = rc4.next(st)
123      Con{B.byte(U32.xor(x, rc4.step.k(n))), rc4.xs(t, rc4.step.st(n))}

Uses (8)

Used by (7)