law xtea_ecb_round_trip

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

import bend-osdev-crypto@0.1.0.0/LAWS.bend as LAWS
import Base
import bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers.bend as L
import bend-osdev-legacy-ciphers@0.1.0.0/xtea.bend as Xt
import bend-osdev-crypto@0.1.0.0/modes.bend as Md

1093# XTEA, little-endian words (legacy-ciphers) in ECB (modes.bend): decryption undoes encryption, for every key and list of blocks
1094law xtea_ecb_round_trip:
1095  for +k: Xt.LcXteaKey
1096  for +bs: List<&2, L.LcBlock64>
1097  {Md.CrEcb.decrypt_blocks(~Xt.LcXteaKey, ~L.LcBlock64, ~Xt.LcXtea.decrypt, k, Md.CrEcb.encrypt_blocks(~Xt.LcXteaKey, ~L.LcBlock64, ~Xt.LcXtea.encrypt, k, bs)) == bs : List<&2, L.LcBlock64>}

Uses (12)

Used by (0)

No other definition uses this definition.