Argon2.rel: def of bend-collections-laws-crypto@1.0.0.0 Import: import bend-collections-laws-crypto@1.0.0.0/spec/crypto/argon2/argon2.bend as Argon2 Lines 267-270 of bend-collections-laws-crypto@1.0.0.0/spec/crypto/argon2/argon2.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-crypto@1.0.0.0/spec/crypto/argon2/argon2.bend&start_line=267&end_line=270 import Base import bend-collections-laws-crypto@1.0.0.0/spec/lib/common.bend as C # x = J1^2 / 2^32; y = (|W| * x) / 2^32; zz = |W| - 1 - y. def rel(+w: Nat, +j1: U32) -> Nat: +x = C.high(32n, Nat.mul(U32.to_nat(j1), U32.to_nat(j1))) Nat.sub(Nat.sub(w, 1n), C.high(32n, Nat.mul(w, x))) 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.mul 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=Base/base.bend&name=U32.to_nat https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/spec/lib/common.bend&name=high