def area_base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/argon2/argon2.bend as Argon2import Base
169# |W|, the number of blocks the reference may be drawn from.
170def area_base(r0: Bool, +s: Nat, +sl: Nat, +q: Nat) -> Nat:
171 match r0:
172 case True{}:
173 Nat.mul(s, sl)
174 case False{}:
175 Nat.sub(q, sl)
Uses (4)
Used by (5)
- 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/fill:mid_eq
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/index:area_base_eq