Ivcipher.ad.cbc.encrypt_padded: def of bend-osdev-aead@0.1.0.0 Import: import bend-osdev-aead@0.1.0.0/ivcipher.bend as Ivcipher Lines 25-26 of bend-osdev-aead@0.1.0.0/ivcipher.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-aead@0.1.0.0/ivcipher.bend&start_line=25&end_line=26 import Base import bend-osdev-bytes@0.1.0.0/bytes.bend as B import bend-osdev-cipher-modes@0.1.0.0/pkcs7.bend as P7 import bend-osdev-crypto@0.1.0.0/crypto.bend as Cr import bend-osdev-crypto@0.1.0.0/modes.bend as Md import bend-osdev-crypto@0.1.0.0/inst_cm.bend as CM def ad.cbc.encrypt_padded(~K: Data, ~Blk: Data, ~bsize: Nat, ~enc: K -> Blk -> Blk, ~bxor: Blk -> Blk -> Blk, ~blk_of: B.Octets -> Maybe<&2, Blk>, ~blk_to: Blk -> B.Octets, +k: K, +iv: B.Octets, m: B.Octets) -> Result<&2, &2, Cr.CrError, B.Octets>: Result.bind(&2, &2, Cr.CrError, B.Octets, B.Octets, CM.CrCm.lift(~B.Octets, P7.Pkcs7.pad(bsize, m)), x => Md.CrCbc.encrypt(~K, ~Blk, ~bsize, ~enc, ~bxor, ~blk_of, ~blk_to, k, iv, x)) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result.bind https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&name=Octets https://jend.leeeet.dev/definition.txt?path=bend-osdev-cipher-modes@0.1.0.0/pkcs7.bend&name=Pkcs7.pad https://jend.leeeet.dev/definition.txt?path=bend-osdev-crypto@0.1.0.0/crypto.bend&name=CrError https://jend.leeeet.dev/definition.txt?path=bend-osdev-crypto@0.1.0.0/inst_cm.bend&name=CrCm.lift https://jend.leeeet.dev/definition.txt?path=bend-osdev-crypto@0.1.0.0/modes.bend&name=CrCbc.encrypt