def rounds
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/blake/blake2b.bend as Blake2bimport Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/blake/blake2b/types.bend as T
166# Rounds i, i+1, .., i+n-1.
167def rounds(n: Nat, +i: Nat, v: T.State, +m: List<&2,T.Lane>) -> T.State:
168 match n:
169 case 0n: v
170 case 1n+p: rounds(p,1n+i,round(v,m,sigma(Nat.mod(i,10n))),m)
Uses (7)
Used by (4)
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/blake/blake2b:compress
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/blake/blake2b/compress:compress_correct
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/blake/blake2b/compress:compress_last_correct
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/blake/blake2b/compress:rounds_correct