law blowfish_block_round_trip_dual
import bend-osdev-crypto@0.1.0.0/LAWS.bend as LAWSimport 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
975# Blowfish (legacy-ciphers): encryption undoes decryption (a permutation of the blocks)
976law blowfish_block_round_trip_dual:
977 for k: Bf.LcBlowfishKey
978 for +b: L.LcBlock64
979 {Bf.LcBlowfish.encrypt(k, Bf.LcBlowfish.decrypt(k, b)) == b : L.LcBlock64}
Uses (5)
- bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers:LcBlock64
- bend-osdev-legacy-ciphers@0.1.0.0/blowfish:LcBlowfishKey
- bend-osdev-legacy-ciphers@0.1.0.0/blowfish:LcBlowfish.decrypt
- bend-osdev-legacy-ciphers@0.1.0.0/blowfish:LcBlowfish.encrypt
- bend-osdev-legacy-ciphers@0.1.0.0/LAWS:blowfish_round_trip_dual
Used by (0)
No other definition uses this definition.