def CrPcbc.encrypt_blocks

bend-osdev-crypto@0.1.0.0 · pcbc.bend:55

import bend-osdev-crypto@0.1.0.0/pcbc.bend as Pcbc
import Base

55# PCBC on blocks, from the chaining value v (the IV for the first call)
56def CrPcbc.encrypt_blocks(~K: Data, ~Blk: Data, ~enc: K -> Blk -> Blk, ~bxor: Blk -> Blk -> Blk, +k: K, v: Blk, bs: List<&2, Blk>) -> List<&2, Blk>:
57  cr.pcbc.enc.go(~K, ~Blk, ~enc, ~bxor, k, bs, v, Nil{})

Uses (2)

Used by (14)