def rel
import bend-collections-laws-crypto@1.0.0.0/src/crypto/argon2/argon2.bend as Argon2import Base
import bend-collections-laws-crypto@1.0.0.0/src/math/w64.bend as X
191# |W| - 1 - (|W| * (J1^2 / 2^32)) / 2^32
192def rel(+w: Nat, +j1: U32) -> Nat:
193 +x = X.hi(X.mul32(j1, j1))
194 Nat.sub(Nat.sub(w, 1n), U32.to_nat(X.hi(X.mul32(U32.from_nat(w), x))))
Uses (7)
Used by (6)
- bend-collections-laws-crypto@1.0.0.0/src/crypto/argon2/argon2:step
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/fill:ixi
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/fill:ixi_mid
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/index:rel_eq
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/fill:mid_eq
- …