def parse_hash

bend-collections-laws-crypto@1.0.0.0 · src/crypto/argon2/phc.bend:322

import bend-collections-laws-crypto@1.0.0.0/src/crypto/argon2/phc.bend as Phc
import Base

322def parse_hash(+m: Nat, +t: Nat, +p: Nat, salt: Maybe<&2, List<&2, U32>>, hash: Maybe<&2, List<&2, U32>>) -> Maybe<&2, Phc>:
323  match salt hash:
324    case Some{s} Some{h}:
325      Some{Phc{m, t, p, s, h}}
326    case _ _:
327      None{}

Uses (5)

Used by (2)