law cast6_block_round_trip

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

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

925# CAST-256 (legacy-ciphers): decryption undoes encryption, for every key and block
926law cast6_block_round_trip:
927  for k: C6.LcCast6Key
928  for +b: M.CmBlock
929  {C6.LcCast6.decrypt(k, C6.LcCast6.encrypt(k, b)) == b : M.CmBlock}

Uses (5)

Used by (0)

No other definition uses this definition.