def chacha8

bend-collections-laws-crypto@1.0.0.0 · spec/math/random/chacha8rand.bend:115

import bend-collections-laws-crypto@1.0.0.0/spec/math/random/chacha8rand.bend as Chacha8rand
import Base

115# the ChaCha8 block function: eight rounds, then the input added back
116def chacha8(+key: List<&2, U32>, +ctr: U32) -> List<&2, U32>:
117  add_words(double_rounds(4n, initial(key, ctr)), initial(key, ctr))

Uses (5)

Used by (1)