def parse_salt

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

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

329def parse_salt(+m: Nat, +t: Nat, +p: Nat, r: Maybe<&2, Cut>) -> Maybe<&2, Phc>:
330  match r:
331    case None{}:
332      None{}
333    case Some{Cut{s, h}}:
334      parse_hash(m, t, p, unb64(s), unb64(h))

Uses (6)

Used by (2)