law sm4_round_trip_dual

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

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

65law sm4_round_trip_dual:
66  for k: S.LcSm4Key
67  for +b: M.CmBlock
68  {S.LcSm4.encrypt(k, S.LcSm4.decrypt(k, b)) == b : M.CmBlock}

Uses (8)

Used by (1)