law hkdf_sha256_too_long
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-crypto@0.1.0.0/crypto.bend as Cr
import bend-osdev-crypto@0.1.0.0/hkdf.bend as Hk
import bend-osdev-crypto@0.1.0.0/inst_sha2.bend as SH
460# HKDF over SHA-256 refuses more than 255 digests (8160 bytes)
461law hkdf_sha256_too_long:
462 {Result.map(&2, &2, Cr.CrError, B.Octets, Unit, o => Unit{}, Hk.CrHkdf.derive(~64n, ~32n, ~SH.CrSha2.sha256, B.Octets.of_string("ikm"), B.Octets.empty(), B.Octets.empty(), 8161n)) == Fail{Cr.CrBadOutputLength{8161n}} : Result<&2, &2, Cr.CrError, Unit>}
Uses (9)
Used by (0)
No other definition uses this definition.