def cr.ks.go

bend-osdev-crypto@0.1.0.0 · stream.bend:89

import bend-osdev-crypto@0.1.0.0/stream.bend as Stream
import Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B

89def cr.ks.go(~S: Data, ~next: S -> CrKsStep<S>, ys: List<&2, U32>, +s: S, acc: List<&2, U32>) -> CrKsRun<S>:
90  match ys:
91    case Nil{}:
92      CrKsRun{s, acc}
93    case Con{x, t}:
94      +r = next(s)
95      cr.ks.go(~S, ~next, t, CrKsStep.st(~S, r), Con{B.byte(U32.xor(x, CrKsStep.k(~S, r))), acc})

Uses (8)

Used by (3)