def rounds
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/blake/blake2s.bend as Blake2simport Base
85# Rounds i, i+1, ..., i+n-1.
86def rounds(n: Nat, +i: Nat, v: List<&2,U32>, +m: List<&2,U32>) -> List<&2,U32>:
87 match n:
88 case 0n: v
89 case 1n+p: rounds(p, 1n+i, round(v, sigma(i), m), m)