LAWS.modes64_ecb_octets: law of bend-osdev-cipher-core@0.1.0.0 Import: import bend-osdev-cipher-core@0.1.0.0/LAWS.bend as LAWS Lines 101-107 of bend-osdev-cipher-core@0.1.0.0/LAWS.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-cipher-core@0.1.0.0/LAWS.bend&start_line=101&end_line=107 import Base import bend-osdev-bytes@0.1.1.0/bytes.bend as B import bend-osdev-cipher-core@0.1.0.0/cipher_core.bend as L import bend-osdev-cipher-core@0.1.0.0/modes64.bend as X law modes64_ecb_octets: for ~K: Data for ~enc: K -> L.LcBlock64 -> L.LcBlock64 for ~dec: K -> L.LcBlock64 -> L.LcBlock64 for +k: K for +bs: List<&2, L.LcBlock64> {Done{X.Lc64.octets_of(X.Lc64.ecb_decrypt_blocks(~K, ~dec, k, X.Lc64.ecb_encrypt_blocks(~K, ~enc, k, bs)))} == Result.bind(&2, &2, L.LcError, B.Octets, B.Octets, X.Lc64.ecb_encrypt(~K, ~enc, k, X.Lc64.octets_of(bs)), c => X.Lc64.ecb_decrypt(~K, ~dec, k, c)) : Result<&2, &2, L.LcError, B.Octets>} Uses (16): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Equal.sym https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List 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=Base/base.bend&name=Result.map https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.1/bytes.bend&name=Octets https://jend.leeeet.dev/definition.txt?path=bend-osdev-cipher-core@0.1.0.0/PROOF.bend&name=ecb_dec_ok https://jend.leeeet.dev/definition.txt?path=bend-osdev-cipher-core@0.1.0.0/PROOF.bend&name=ecb_enc_ok https://jend.leeeet.dev/definition.txt?path=bend-osdev-cipher-core@0.1.0.0/cipher_core.bend&name=LcBlock64 https://jend.leeeet.dev/definition.txt?path=bend-osdev-cipher-core@0.1.0.0/cipher_core.bend&name=LcError https://jend.leeeet.dev/definition.txt?path=bend-osdev-cipher-core@0.1.0.0/modes64.bend&name=Lc64.blocks_of https://jend.leeeet.dev/definition.txt?path=bend-osdev-cipher-core@0.1.0.0/modes64.bend&name=Lc64.ecb_decrypt https://jend.leeeet.dev/definition.txt?path=bend-osdev-cipher-core@0.1.0.0/modes64.bend&name=Lc64.ecb_decrypt_blocks https://jend.leeeet.dev/definition.txt?path=bend-osdev-cipher-core@0.1.0.0/modes64.bend&name=Lc64.ecb_encrypt https://jend.leeeet.dev/definition.txt?path=bend-osdev-cipher-core@0.1.0.0/modes64.bend&name=Lc64.ecb_encrypt_blocks https://jend.leeeet.dev/definition.txt?path=bend-osdev-cipher-core@0.1.0.0/modes64.bend&name=Lc64.octets_of