law tdes_block_round_trip_dual

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

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/tdes.bend as T

675# Triple DES (legacy-ciphers): encryption undoes decryption (a permutation of the blocks)
676law tdes_block_round_trip_dual:
677  for k: T.LcTdesKey
678  for +b: L.LcBlock64
679  {T.LcTdes.encrypt(k, T.LcTdes.decrypt(k, b)) == b : L.LcBlock64}

Uses (5)

Used by (0)

No other definition uses this definition.