def fits

bend-collections@1.0.0.0 · src/crypto/argon2/argon2.bend:340

import bend-collections@1.0.0.0/src/crypto/argon2/argon2.bend as Argon2
import Base
import bend-collections@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 (1)