law blowfish_block_round_trip

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

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/blowfish.bend as Bf

969# Blowfish (legacy-ciphers): decryption undoes encryption, for every key and block
970law blowfish_block_round_trip:
971  for k: Bf.LcBlowfishKey
972  for +b: L.LcBlock64
973  {Bf.LcBlowfish.decrypt(k, Bf.LcBlowfish.encrypt(k, b)) == b : L.LcBlock64}

Uses (5)

Used by (0)

No other definition uses this definition.