law cast5_bad_key_length

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

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/cast5.bend as C5

339# a CAST-128 key of 4 bytes is refused (40 bits at least)
340law cast5_bad_key_length:
341  {Result.map(&2, &2, L.LcError, C5.LcCast5Key, Unit, k => Unit{}, C5.LcCast5.key(B.Octets.of_list([0, 0, 0, 0]))) == Fail{L.LcBadKeyLength{4n}} : Result<&2, &2, L.LcError, Unit>}

Uses (8)

Used by (0)

No other definition uses this definition.