Pbkdf2.cr.pbkdf2.block: def of bend-osdev-crypto@0.1.0.0 Import: import bend-osdev-crypto@0.1.0.0/pbkdf2.bend as Pbkdf2 Lines 46-49 of bend-osdev-crypto@0.1.0.0/pbkdf2.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-crypto@0.1.0.0/pbkdf2.bend&start_line=46&end_line=49 import Base import bend-osdev-bytes@0.1.0.0/bytes.bend as B # T_i, with c the iteration count less one def cr.pbkdf2.block(~K: Data, ~compute: K -> B.Octets -> B.Octets, +k: K, salt: B.Octets, c: Nat, i: U32) -> List<&2, U32>: +u1 = compute(k, B.Octets.append(salt, B.Octets.be32(i))) cr.pbkdf2.chain(~K, ~compute, c, k, u1, B.Octets.to_list(u1)) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat 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.append 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.to_list https://jend.leeeet.dev/definition.txt?path=bend-osdev-crypto@0.1.0.0/pbkdf2.bend&name=cr.pbkdf2.chain