Chacha.xor_bytes: def of bend-collections-laws-crypto@1.0.0.0 Import: import bend-collections-laws-crypto@1.0.0.0/spec/crypto/chacha.bend as Chacha Lines 152-156 of bend-collections-laws-crypto@1.0.0.0/spec/crypto/chacha.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-crypto@1.0.0.0/spec/crypto/chacha.bend&start_line=152&end_line=156 import Base # Byte-wise XOR of a block with the keystream (as long as the block). def xor_bytes(xs: List<&2, U32>, ks: List<&2, U32>) -> List<&2, U32>: match xs ks: case x <> xt k <> kt: U32.xor(x, k) <> xor_bytes(xt, kt) case _ _: Nil{} Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.xor