def words
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/chacha.bend as Chachaimport Base
78# The words of a byte list, four bytes each (a partial tail is dropped).
79def words(bytes: List<&2, U32>) -> List<&2, U32>:
80 match bytes:
81 case b0 <> b1 <> b2 <> b3 <> rest: word(b0, b1, b2, b3) <> words(rest)
82 case _: Nil{}
Uses (3)
Used by (5)
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/chacha/stream:body_correct
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/chacha/stream:words_eq
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/chacha:block_body
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/chacha:hchacha_body
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/chacha/xchacha:hbody_correct