Kbkdf.CrKbkdf.counter: def of bend-osdev-crypto@0.1.0.0 Import: import bend-osdev-crypto@0.1.0.0/kbkdf.bend as Kbkdf Lines 43-45 of bend-osdev-crypto@0.1.0.0/kbkdf.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-crypto@0.1.0.0/kbkdf.bend&start_line=43&end_line=45 import Base import bend-osdev-bytes@0.1.0.0/bytes.bend as B # [i]_2 as rlen bytes (the low 8 rlen bits of i, big-endian) def CrKbkdf.counter(+rlen: Nat, i: U32) -> B.Octets: B.Octets.drop(Nat.sub(4n, rlen), B.Octets.be32(i)) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.sub https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&name=Octets https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&name=Octets.be32 https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&name=Octets.drop