law camellia_ecb_round_trip
import bend-osdev-crypto@0.1.0.0/LAWS.bend as LAWSimport Base
import bend-osdev-cipher-modes@0.1.0.0/cipher_modes.bend as M
import bend-osdev-legacy-ciphers@0.1.0.0/camellia.bend as Ca
import bend-osdev-crypto@0.1.0.0/modes.bend as Md
765# Camellia (legacy-ciphers) in ECB (modes.bend): decryption undoes encryption, for every key and list of blocks
766law camellia_ecb_round_trip:
767 for +k: Ca.LcCamelliaKey
768 for +bs: List<&2, M.CmBlock>
769 {Md.CrEcb.decrypt_blocks(~Ca.LcCamelliaKey, ~M.CmBlock, ~Ca.LcCamellia.decrypt, k, Md.CrEcb.encrypt_blocks(~Ca.LcCamelliaKey, ~M.CmBlock, ~Ca.LcCamellia.encrypt, k, bs)) == bs : List<&2, M.CmBlock>}
Uses (12)
Used by (0)
No other definition uses this definition.