def CrCbc.encrypt_blocks

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

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

80# CBC on blocks: the last ciphertext block of one call is the IV of the next,
81# so a message may arrive a block at a time
82def CrCbc.encrypt_blocks(~K: Data, ~Blk: Data, ~enc: K -> Blk -> Blk, ~bxor: Blk -> Blk -> Blk, +k: K, iv: Blk, bs: List<&2, Blk>) -> List<&2, Blk>:
83  cr.cbc.enc.go(~K, ~Blk, ~enc, ~bxor, k, bs, iv, Nil{})

Uses (2)

Used by (14)