law sm4_round_trip

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

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/sm4.bend as S

60law sm4_round_trip:
61  for k: S.LcSm4Key
62  for +b: M.CmBlock
63  {S.LcSm4.decrypt(k, S.LcSm4.encrypt(k, b)) == b : M.CmBlock}

Uses (9)

Used by (5)