def hprime_ok

bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/argon2/password.bend:202

import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/password.bend as Password
import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/argon2/argon2.bend as A2
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/phc.bend as PP

202# Every byte of H'^T is below 256.
203def hprime_ok(+tl: Nat, +a: List<&2, U32>) -> {PP.ok(A2.hprime(tl, a)) == True{} : Bool}:
204  pick_ok(tl, A2.cat(A2.le32(tl), a), Nat.is_le(tl, 64n))

Uses (10)

Used by (2)