def step6_correct

bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/argon2/blamka.bend:45

import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/blamka.bend as Blamka
import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/blake/blake2b/types.bend as T
import bend-collections-laws-crypto@1.0.0.0/src/crypto/argon2/blamka.bend as I
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/argon2/blamka.bend as S
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/gb.bend as GB

45def step6_correct(+v: T.State) -> {I.step6(v) == S.GBi(v, 2n, 7n, 8n, 13n) : T.State}:
46  match v:
47    case T.V{x0,x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11,x12,x13,x14,x15}:
48      Equal.cong(T.Quad, T.State, q => I.put6(q, x0,x1,x3,x4,x5,x6,x9,x10,x11,x12,x14,x15), I.gb(x2, x7, x8, x13), S.GB(x2, x7, x8, x13), GB.gb_correct(x2, x7, x8, x13))

Uses (9)

Used by (1)