def rc4.start.pick
import bend-osdev-legacy-ciphers@0.1.0.0/rc4.bend as Rc4import Base
import bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers.bend as L
171def rc4.start.pick(ok: Bool, +key: List<&2, U32>, +klen: Nat) -> Result<&2, &2, L.LcError, LcRc4State>:
172 match ok:
173 case True{}:
174 Done{LcRc4State{rc4.ksa(256n, key, klen, L.lc.tab(8n, rc4.ident(256n, 0)), 0, 0), 0, 0}}
175 case False{}:
176 Fail{L.LcBadKeyLength{klen}}