law cast6_ecb_round_trip

bend-osdev-crypto@0.1.0.0 · LAWS.bend:941

import bend-osdev-crypto@0.1.0.0/LAWS.bend as LAWS
import Base
import bend-osdev-cipher-modes@0.1.0.0/cipher_modes.bend as M
import bend-osdev-legacy-ciphers@0.1.0.0/cast6.bend as C6
import bend-osdev-crypto@0.1.0.0/modes.bend as Md

941# CAST-256 (legacy-ciphers) in ECB (modes.bend): decryption undoes encryption, for every key and list of blocks
942law cast6_ecb_round_trip:
943  for +k: C6.LcCast6Key
944  for +bs: List<&2, M.CmBlock>
945  {Md.CrEcb.decrypt_blocks(~C6.LcCast6Key, ~M.CmBlock, ~C6.LcCast6.decrypt, k, Md.CrEcb.encrypt_blocks(~C6.LcCast6Key, ~M.CmBlock, ~C6.LcCast6.encrypt, k, bs)) == bs : List<&2, M.CmBlock>}

Uses (12)

Used by (0)

No other definition uses this definition.