def CrLrw.encrypt_blocks
import bend-osdev-crypto@0.1.0.0/lrw.bend as Lrwimport Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B
import bend-osdev-gf@0.1.0.0/gf128.bend as G
96# LRW on blocks: key k, tweak key k2, the first block's index i (the next
97# call's index is i plus the number of blocks)
98def CrLrw.encrypt_blocks(~K: Data, ~Blk: Data, ~enc: K -> Blk -> Blk, ~bxor: Blk -> Blk -> Blk, ~blk_of: B.Octets -> Maybe<&2, Blk>, +k: K, +k2: G.Gf128, +i: G.Gf128, bs: List<&2, Blk>) -> List<&2, Blk>:
99 cr.lrw.enc.go(~K, ~Blk, ~enc, ~bxor, ~blk_of, k, k2, bs, i, Nil{})