law sm4_round_trip
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
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}