def row_at_eq

bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/argon2/index.bend:28

import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/index.bend as Index
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/types.bend as A
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/blamka.bend as SG

28def row_at_eq(+b: A.Block, +i: Nat) -> {I.row_at(b, i) == SG.row(b, i) : T.State}:
29  match b i:
30    case A.B{r0, r1, r2, r3, r4, r5, r6, r7} 0n:
31      {==}
32    case A.B{r0, r1, r2, r3, r4, r5, r6, r7} 1n:
33      {==}
34    case A.B{r0, r1, r2, r3, r4, r5, r6, r7} 2n:
35      {==}
36    case A.B{r0, r1, r2, r3, r4, r5, r6, r7} 3n:
37      {==}
38    case A.B{r0, r1, r2, r3, r4, r5, r6, r7} 4n:
39      {==}
40    case A.B{r0, r1, r2, r3, r4, r5, r6, r7} 5n:
41      {==}
42    case A.B{r0, r1, r2, r3, r4, r5, r6, r7} 6n:
43      {==}
44    case A.B{r0, r1, r2, r3, r4, r5, r6, r7} 7n+z:
45      {==}

Uses (5)

Used by (1)