def CrKbkdf.fixed

bend-osdev-crypto@0.1.0.0 · kbkdf.bend:90

import bend-osdev-crypto@0.1.0.0/kbkdf.bend as Kbkdf
import Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B

90# the fixed input data Label || 0x00 || Context || [L]_2 for n bytes
91def CrKbkdf.fixed(~llen: Nat, label: B.Octets, context: B.Octets, +n: Nat) -> B.Octets:
92  B.Octets.concat([label, B.Octets.of_list([0]), context, CrKbkdf.length(llen, n)])

Uses (6)

Used by (5)