law sm4_block_round_trip_dual
import bend-osdev-crypto@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
711# SM4 (legacy-ciphers): encryption undoes decryption (a permutation of the blocks)
712law sm4_block_round_trip_dual:
713 for k: S.LcSm4Key
714 for +b: M.CmBlock
715 {S.LcSm4.encrypt(k, S.LcSm4.decrypt(k, b)) == b : M.CmBlock}
Uses (5)
Used by (0)
No other definition uses this definition.