law tdes_bad_key_length

bend-osdev-legacy-ciphers@0.1.0.0 · LAWS.bend:298

import bend-osdev-legacy-ciphers@0.1.0.0/LAWS.bend as LAWS
import Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B
import bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers.bend as L
import bend-osdev-legacy-ciphers@0.1.0.0/tdes.bend as T

298# a TDEA key bundle of 8 bytes is refused (keying option 3 is not allowed)
299law tdes_bad_key_length:
300  {Result.map(&2, &2, L.LcError, T.LcTdesKey, Unit, k => Unit{}, T.LcTdes.key(B.Octets.of_list([0, 0, 0, 0, 0, 0, 0, 0]))) == Fail{L.LcBadKeyLength{8n}} : Result<&2, &2, L.LcError, Unit>}

Uses (8)

Used by (0)

No other definition uses this definition.