law sm4_block_round_trip

bend-osdev-crypto@0.1.0.0 · LAWS.bend:705

import bend-osdev-crypto@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

705# SM4 (legacy-ciphers): decryption undoes encryption, for every key and block
706law sm4_block_round_trip:
707  for k: S.LcSm4Key
708  for +b: M.CmBlock
709  {S.LcSm4.decrypt(k, S.LcSm4.encrypt(k, b)) == b : M.CmBlock}

Uses (5)

Used by (0)

No other definition uses this definition.