def regen_eq

bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/argon2/index.bend:207

import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/index.bend as Index
import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/argon2/types.bend as A
import bend-collections-laws-crypto@1.0.0.0/src/crypto/argon2/argon2.bend as I
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/argon2/argon2.bend as SA

207def regen_eq(+need: Bool, +addr: A.Block, +r: Nat, +l: Nat, +s: Nat, +mm: Nat, +t: Nat, +idx: Nat) -> {I.regen(need, addr, r, l, s, mm, t, idx) == SA.regen(need, addr, r, l, s, mm, t, idx) : A.Block}:
208  match need:
209    case True{}:
210      addresses_eq(r, l, s, mm, t, Nat.add(Nat.div(idx, 128n), 1n))
211    case False{}:
212      {==}

Uses (8)

Used by (1)