def CrCtr.start

bend-osdev-crypto@0.1.0.0 · modes.bend:287

import bend-osdev-crypto@0.1.0.0/modes.bend as Modes
import Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B
import bend-osdev-crypto@0.1.0.0/crypto.bend as Cr

287# The state for a raw key and an initial counter block of bsize bytes
288# (CrBadIvLength for another length)
289def CrCtr.start(~K: Data, ~bsize: Nat, ~key: B.Octets -> Result<&2, &2, Cr.CrError, K>, key_o: B.Octets, iv: B.Octets) -> Result<&2, &2, Cr.CrError, CrCtrState<K>>:
290  cr.ctr.start(~K, ~bsize, ~key, key_o, B.Octets.to_list(iv))

Uses (7)

Used by (3)