law parse_format
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/laws.bend as Lawsimport Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/argon2/phc.bend as PH
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/phc.bend as PP
99# The PHC string parses back to its fields (bytes below 256).
100law parse_format:
101 for +m: Nat
102 for +t: Nat
103 for +p: Nat
104 for +salt: List<&2, U32>
105 for +hash: List<&2, U32>
106 for +hs: {PP.ok(salt) == True{} : Bool}
107 for +hh: {PP.ok(hash) == True{} : Bool}
108 {PH.parse(PH.format(PH.Phc{m, t, p, salt, hash})) == Some{PH.Phc{m, t, p, salt, hash}} : Maybe<&2, PH.Phc>}
Uses (10)
Used by (0)
No other definition uses this definition.