def encrypt_rounds
import bend-collections@1.0.0.0/src/crypto/chacha/chacha20.bend as Chacha20import Base
88def encrypt_rounds(+r: Nat, key_bytes: List<&2, U32>, counter: U32, nonce_bytes: List<&2, U32>, +plaintext: List<&2, U32>) -> List<&2, U32>:
89 stream(List.length(&2, U32, plaintext), plaintext, r, key(key_bytes), counter, nonce(nonce_bytes))