law serpent_round_trip

bend-osdev-legacy-ciphers@0.1.0.0 · LAWS.bend:84

import bend-osdev-legacy-ciphers@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 P

84law serpent_round_trip:
85  for k: P.LcSerpentKey
86  for +b: M.CmBlock
87  {P.LcSerpent.decrypt(k, P.LcSerpent.encrypt(k, b)) == b : M.CmBlock}

Uses (8)

Used by (5)