def xts.dec.go

bend-osdev-cipher-modes@0.1.0.0 · xts.bend:72

import bend-osdev-cipher-modes@0.1.0.0/xts.bend as Xts
import Base
import bend-osdev-cipher-modes@0.1.0.0/cipher_modes.bend as M

72def xts.dec.go(~K: Data, ~dec: K -> M.CmBlock -> M.CmBlock, +k: K, bs: List<&2, M.CmBlock>, +t: M.CmBlock, acc: List<&2, M.CmBlock>) -> List<&2, M.CmBlock>:
73  match bs:
74    case Nil{}:
75      M.cm.blocks.rev_onto(acc, Nil{})
76    case Con{c, rest}:
77      xts.dec.go(~K, ~dec, k, rest, Xts.mul_alpha(t), Con{xts.bdec(~K, ~dec, k, c, t), acc})

Uses (5)

Used by (2)