law block64_octets_round_trip

bend-osdev-cipher-core@0.1.0.0 · LAWS.bend:10

import bend-osdev-cipher-core@0.1.0.0/LAWS.bend as LAWS
import Base
import bend-osdev-cipher-core@0.1.0.0/cipher_core.bend as L

10# 64-bit blocks as bytes: a block read back from its 8 bytes is itself, 8
11# bytes read as a block are written back as those bytes, and a list of
12# blocks read back from its bytes is itself
13law block64_octets_round_trip:
14  for +b: L.LcBlock64
15  {L.LcBlock64.of_octets(L.LcBlock64.to_octets(b)) == Some{b} : Maybe<&2, L.LcBlock64>}

Uses (14)

Used by (2)