law camellia_pcbc_round_trip
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/camellia.bend as Ca
import bend-osdev-crypto@0.1.0.0/pcbc.bend as Pc
import bend-osdev-crypto@0.1.0.0/inst_cm.bend as CM
778# Camellia (legacy-ciphers) in PCBC (pcbc.bend): decryption undoes encryption, for every key, IV and list of blocks
779law camellia_pcbc_round_trip:
780 for +k: Ca.LcCamelliaKey
781 for +iv: M.CmBlock
782 for +bs: List<&2, M.CmBlock>
783 {Pc.CrPcbc.decrypt_blocks(~Ca.LcCamelliaKey, ~M.CmBlock, ~Ca.LcCamellia.decrypt, ~CM.CrBlk128.xor, k, iv, Pc.CrPcbc.encrypt_blocks(~Ca.LcCamelliaKey, ~M.CmBlock, ~Ca.LcCamellia.encrypt, ~CM.CrBlk128.xor, k, iv, bs)) == bs : List<&2, M.CmBlock>}
Uses (16)
Used by (0)
No other definition uses this definition.