def block_rounds

bend-collections@1.0.0.0 · spec/crypto/chacha.bend:117

import bend-collections@1.0.0.0/spec/crypto/chacha.bend as Chacha
import Base

117# The same, entered through a match on the key's first cell. Both arms are
118# block_body; the match only keeps the proof checker from evaluating the
119# rounds on a symbolic key (it compares types by evaluating them).
120def block_rounds(+n: Nat, key: List<&2, U32>, counter: U32, +nonce: List<&2, U32>) -> List<&2, U32>:
121  match key:
122    case Nil{}: block_body(n, Nil{}, counter, nonce)
123    case b <> rest: block_body(n, b <> rest, counter, nonce)

Uses (4)

Used by (2)