def vec

bend-collections-laws-crypto@1.0.0.0 · proofs/math/random/chacha8/rounds.bend:14

import bend-collections-laws-crypto@1.0.0.0/proofs/math/random/chacha8/rounds.bend as Rounds
import Base
import bend-collections-laws-crypto@1.0.0.0/src/math/random/chacha8/block.bend as B
import bend-collections-laws-crypto@1.0.0.0/spec/math/random/chacha8rand.bend as S

14# the state as the RFC list x[0..15]; like S.key_list on a key, it is stuck
15# on an abstract state, so the checker never unfolds rounds of symbolic
16# words it does not have to compare
17def vec(v: B.Vector) -> List<&2,U32>:
18  match v:
19    case B.V{a0,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15}: [a0,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15]

Uses (3)

Used by (8)