Laws.rehash_hash: law of bend-collections-laws-crypto@1.0.0.0 Import: import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/laws.bend as Laws Lines 118-125 of bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/laws.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/laws.bend&start_line=118&end_line=125 import Base import bend-collections-laws-crypto@1.0.0.0/src/crypto/password.bend as PW import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/phc.bend as PP import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/password.bend as PWP # A hash needs no rehash with its own parameters. law rehash_hash: for +pw: List<&2, U32> for +salt: List<&2, U32> for +params: PW.Params for +hs: {PP.ok(salt) == True{} : Bool} for +hl: {PWP.len(salt) == PW.salt_len(params) : Nat} {PWP.fresh(PW.hash_password(pw, salt, params), params) == False{} : Bool} Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/password.bend&name=fresh https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/password.bend&name=len https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/password.bend&name=rehash_hash https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/phc.bend&name=ok https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/crypto/password.bend&name=Params https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/crypto/password.bend&name=hash_password https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/crypto/password.bend&name=salt_len