law camellia_bad_key_length

bend-osdev-camellia@0.1.0.0 · LAWS.bend:31

import bend-osdev-camellia@0.1.0.0/LAWS.bend as LAWS
import Base
import bend-osdev-bytes@0.1.1.0/bytes.bend as B
import bend-osdev-cipher-core@0.1.0.0/cipher_core.bend as L
import bend-osdev-camellia@0.1.0.0/camellia.bend as C

31# a Camellia key of 20 bytes is refused
32law camellia_bad_key_length:
33  {Result.map(&2, &2, L.LcError, C.LcCamelliaKey, Unit, k => Unit{}, C.LcCamellia.key(B.Octets.of_list([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]))) == Fail{L.LcBadKeyLength{20n}} : Result<&2, &2, L.LcError, Unit>}

Uses (8)

Used by (0)

No other definition uses this definition.