law serpent_block_round_trip_dual

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

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/serpent.bend as Sp

799# Serpent (legacy-ciphers): encryption undoes decryption (a permutation of the blocks)
800law serpent_block_round_trip_dual:
801  for k: Sp.LcSerpentKey
802  for +b: M.CmBlock
803  {Sp.LcSerpent.encrypt(k, Sp.LcSerpent.decrypt(k, b)) == b : M.CmBlock}

Uses (5)

Used by (0)

No other definition uses this definition.