law argon2id_correct
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/argon2.bend as I
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/argon2/argon2.bend as SA
84# Argon2id: for every password, salt, secret, associated data and
85# parameters whose memory fits this implementation (m' <= 2^23 blocks), the
86# tag (or None) is the specification's.
87law argon2id_correct:
88 for +pw: List<&2, U32>
89 for +salt: List<&2, U32>
90 for +key: List<&2, U32>
91 for +ad: List<&2, U32>
92 for +t: Nat
93 for +m: Nat
94 for +p: Nat
95 for +tl: Nat
96 for +hf: {I.fits(m, p) == True{} : Bool}
97 {I.argon2id(pw, salt, key, ad, t, m, p, tl) == SA.argon2id(pw, salt, key, ad, t, m, p, tl) : Maybe<&2, List<&2, U32>>}
Uses (9)
Used by (0)
No other definition uses this definition.