law sm4_round_trip_dual
import bend-osdev-legacy-ciphers@0.1.0.0/LAWS.bend as LAWSimport 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}