law twofish_round_trip

bend-osdev-legacy-ciphers@0.1.0.0 · LAWS.bend:96

import bend-osdev-legacy-ciphers@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/twofish.bend as F

96law twofish_round_trip:
97  for k: F.LcTwofishKey
98  for +b: M.CmBlock
99  {F.LcTwofish.decrypt(k, F.LcTwofish.encrypt(k, b)) == b : M.CmBlock}

Uses (8)

Used by (5)