law rc4_empty_key
import bend-osdev-crypto@0.1.0.0/LAWS.bend as LAWSimport Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B
import bend-osdev-legacy-ciphers@0.1.0.0/rc4.bend as R
import bend-osdev-crypto@0.1.0.0/crypto.bend as Cr
import bend-osdev-crypto@0.1.0.0/inst_rc4.bend as RC
347# refusals: an RC4 key of 0 bytes, an IV given to RC4, a CTR counter block
348# of the wrong length, bytes that are not whole blocks, and an HKDF output
349# longer than 255 digests
350law rc4_empty_key:
351 {Result.map(&2, &2, Cr.CrError, R.LcRc4State, Unit, s => Unit{}, RC.CrRc4.start(B.Octets.empty(), B.Octets.empty())) == Fail{Cr.CrBadKeyLength{0n}} : Result<&2, &2, Cr.CrError, Unit>}
Uses (7)
Used by (0)
No other definition uses this definition.