def fits
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/crypto/argon2/memory.bend as M
340# This implementation's limit: the memory of m' blocks is an array of at most
341# 2^31 words, so m' <= 2^23 (8 GiB), the RFC allowing up to 2^32 - 1 KiB.
342def fits(+m: Nat, +p: Nat) -> Bool:
343 Nat.is_le(M.levels(blocks(m, p)), 23n)
Uses (5)
Used by (8)
- bend-collections-laws-crypto@1.0.0.0/src/crypto/argon2/argon2:argon2id
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/password:tag_len
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/password:tag_ok
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/top:argon2id_correct
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/top:checked_eq
- …