def cr.rc4.start
bend-osdev-crypto@0.1.0.0 · inst_rc4.bend:15
import bend-osdev-crypto@0.1.0.0/inst_rc4.bend as InstRc4
import Base
import bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers.bend as L
import bend-osdev-legacy-ciphers@0.1.0.0/rc4.bend as R
import bend-osdev-crypto@0.1.0.0/crypto.bend as Cr
import bend-osdev-crypto@0.1.0.0/inst_lc.bend as LC
15def cr.rc4.start(+n: Nat, r: Result<&2, &2, L.LcError, R.LcRc4State>) -> Result<&2, &2, Cr.CrError, R.LcRc4State>:
16 do Result<&2, &2, Cr.CrError, R.LcRc4State>:
17 Cr.CrError.check(Nat.is_eq(n, 0n), Cr.CrBadIvLength{n})
18 LC.CrLc.lift(~R.LcRc4State, r)